简体   繁体   中英

how to load sample.RData file using R?

I am trying to load "sample.RData" file in R. The error it gives is

Error in load("sample.RData"): bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning message: file 'sample.RData' has magic number 'RDX3' Use of save versions prior to 2 is deprecated

I checked many solutions like, to use save() instead of load etc. but not successful. Please recommend any solution.

Are you trying to load like this:

load("your_directory/object_name.RData")

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