Skip to content

Instantly share code, notes, and snippets.

@t-student
Created October 18, 2015 09:19
Show Gist options
  • Save t-student/beddf7ad484a7a4acda5 to your computer and use it in GitHub Desktop.
Save t-student/beddf7ad484a7a4acda5 to your computer and use it in GitHub Desktop.
# Create a dataframe on the fly in a file.
# Note, when executing you need to finish with a carriage return.
nicotine <- read.table(stdin(),header=TRUE)
day active mp score
20120824 1 3 35.2
20120827 0 5 37.2
20120828 0 3 37.6
20120830 1 3 37.75
20120831 1 2 37.75
20120902 0 2 36.0
20120905 0 5 36.0
20120906 1 5 37.25
20120910 0 5 49.2
20120911 1 3 36.8
20120912 0 3 44.6
20120913 0 5 38.4
20120915 0 5 43.8
20120916 0 2 39.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment