简体   繁体   中英

How to read .rdata file in R

I have a file poly.rdata. Shall I use

df <- load(file="..poly.rdata")
head(df)

to load the data? But I can't see the data using head(df).

head(df)

[1] "poly.data"

Just semove the df <- in your code.

load() will load all the objects contained in the .RData file. This can be multiple variables and dataframes with various names, so you do not need to specify one object name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM