Categories

Back 2 Code

Stack Overflow: reading data

One of the tedious thing in Stack Overflow is to grab example data provided by users in order to be able to use it to reproduce the case and try to solve it. Here is how to do it efficiently in R and Python, hope this will help you being the first to answer! In R 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 library(tibble) # Paste the text in a String, R allows multiline strings.