Textual Serialization

We can serialize an object into a file with all the metadata.

Write object into file

data <- data.frame(a=1, b=2)
dput(data, file="data.R")

Read object from file

newData <- dget("data.R")

Reading and writting multiple objects

dumparrow-up-right and sourcearrow-up-right functions are used to read and write multiple objects.

Or we can use savearrow-up-right and loadarrow-up-right functions.

Last updated