Skip to main content
Adding in helpful function noted in the comments
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26

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

Edit3: I just noticed that @KonradRudolph has helpfully pointed out in the comments that the function clipr::read_clip_tbl() very easily allows for the reading in of table presented in data form. I still think it's not ideal since I don't think it accounts for differences in types, but it is a lot easier than trying to copy and paste them directly.

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

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

Edit3: I just noticed that @KonradRudolph has helpfully pointed out in the comments that the function clipr::read_clip_tbl() very easily allows for the reading in of table presented in data form. I still think it's not ideal since I don't think it accounts for differences in types, but it is a lot easier than trying to copy and paste them directly.

add quote and clarify
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26

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

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. 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

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

add quote and clarify
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26

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. 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

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.

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. 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

edited tags
Link
Braiam
  • 4.5k
  • 13
  • 154
  • 265
Loading
edited tags
Link
Catija StaffMod
  • 365
  • 20
  • 95
  • 124
Loading
More science? MOAR SCIENCE!
Link
Braiam
  • 4.5k
  • 13
  • 154
  • 265
Loading
Became Hot Meta Post
edited tags
Link
Braiam
  • 4.5k
  • 13
  • 154
  • 265
Loading
update title
Link
user438383
  • 6.2k
  • 1
  • 17
  • 26
Loading
added 80 characters in body
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26
Loading
deleted 6 characters in body
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26
Loading
deleted 6 characters in body
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26
Loading
Source Link
user438383
  • 6.2k
  • 1
  • 17
  • 26
Loading