Tutorial by Examples

.rds and .Rdata (also known as .rda) files can be used to store R objects in a format native to R. There are multiple advantages of saving this way when contrasted with non-native storage approaches, e.g. write.table: It is faster to restore the data to R It keeps R specific information encoded ...
The functions save and load allow us to specify the environment where the object will be hosted: save(iris, cars, file = "myIrisAndCarsData.Rdata", envir = foo <- new.env()) load("myIrisAndCarsData.Rdata", envir = foo) foo$cars save(iris, cars, file = "myIrisAndCar...

Page 1 of 1