
上QQ阅读APP看书,第一时间看更新
How to do it...
To be able to read data from R files and libraries, follow these steps:
- Load data from the R data files into memory:
> load("test.Rdata")
> ord <- readRDS("order.rds")
- The datasets package is loaded in the R environment by default and contains the iris and cars datasets. To load these datasets data into memory, use the following code:
> data(iris)
> data(list(cars,iris))
The first command loads only the iris dataset, and the second loads both the cars and iris datasets.