Question: how does dput work in r?
Answer: Notice that the dput() output is in the form of R code and that it preserves metadata like the class of the object, the row names, and the column names. The output of dput() can also be saved directly to a file. Multiple objects can be deparsed at once using the dump function and read back in using source .