I miss a way to add data to an SO answer in a transparent manner. My experience is that the structure
object from dput()
at times confuses inexperi
Generally a large dput
is difficult to cope with, on SO or otherwise. Instead you can just save the structure directly to an Rda
file:
save(Df, file='foo.Rda')
And read it back in:
load('foo.Rda')
See this question for a little more info and credit where credit is due: How to save a data.frame in R?
You could also look at the sink
function...
If I've missed the purpose of your question, please feel free to expand on the reasons why dput
is the only mechanism for you.