简体   繁体   中英

How to save data object in RStudio?

I use RStudio 1.3.959 To run my experiments, I load data from csv, h5, txt, etc files. That data is saved in the RStudio environment although I did not save them on purpose. But one large data object which I loaded from txt file recently is not saved. So, whenever RStudio faces some issues and quits I have to load that data object again. I tried to save it using save.image() which is supposed to save the entire environment. But I still have all the previously saved data but not that one I need.

What is the best way to save the data in RStudio environment to avoid loading it over and over?

This might help

save data as a RDS object, use the saveRDS function.

you can refer to https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/readRDS

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