Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是出于好奇,我想知道与使用 CSV 相比,将数据集保存为 RDA 文件是否有任何优势(例如,空间效率等)?
两个都:
m<-matrix(1:1000000,1000) > system.time(write.csv(m,file="csv.csv")) user system elapsed 1.33 0.08 1.42 # size 6,741KB > system.time(save(m,file="m.RData")) user system elapsed 0.84 0.03 0.87 # size 2,079KB