Tuesday 27 December 2016

r - How to transfer values into reproducible code

I know how to manually create reproducible code, e.g.



a<-c(0,1,1,0,0,1)
b<-c("A","B","A","B","A","B")
c<-c(1,1,2,2,3,3)


However, I want to provide the code with my actual data (with >100 rows) is there a way to "copy" the dataframe into a code format without typing the individual values? (i.e. a<-c(0,1,... for all my values))




Thank you very much!

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...