is there any package/command in R that reads a data.frame and then creates a command that can be used to create the exactly same data.frame without loading data, i.e., all data of the data.frame would have to be stored within the command?
e.g. if one has a data.frame like this:
mydata <- data.frame(col1=c(1,2),col2=c(3,4))
I just want to get the command such that reading "mydata" results in the command on the right hand side.
BR Fabian