Skip to main content
11 of 12
add quote and clarify
user438383
  • 6.2k
  • 1
  • 17
  • 26

Discouraging questioners from posting data in table form for questions on R/SQL

Questions based on R are much easier to answer if the questioner posts a small example of their data using a function such as dput, so that the answerer can paste the data quickly into their own console. There is a good explanation of why this is necessary here. New users often post images of their data which makes it vastly more difficult to answer the question, along with other issues regarding searchability.

I have noticed now that many users post their data in the form of a formatted table, such as in this question. These tables aren't quite as bad as images, but they are still tricky to paste into your console and make answering the question somewhat annoying. Personally I will avoid any questions where the data is formatted like this.

I was wondering if there would be a way to discourage users to share their data in this format for particular questions (like in R)? Perhaps some kind of tooltip or note under the table tab which suggests it's not a good way to share data?

EDIT: User Larnu points out this applies to questions regarding SQL as well.

EDIT 2: A couple of users seems to have confused exactly why this is an issue. It is not because I have impossibly high standards for how people should format their posts. It is because it is a) potentially error prone and b) time consuming to read in the data from a table. Perhaps unlike questions regarding other languages, it is crucial to have a minimally reproducible example of a dataset in R.

To quote a comment by Chris Schaller:

.. you have to somehow provide that exact data.frame to R, which typically means manually typing out that object (e.g. placing double quotes around strings, commas between values, instantiating the object) and even then you're kinda left guessing as to the class of the object - for example, in the OP's example question, it could be a tibble or a data.frame (or something else), but we're never really sure

user438383
  • 6.2k
  • 1
  • 17
  • 26