Just out of curiosity, I was wondering if there were any advantages (e.g., space efficiency etc) to saving a dataset as a RDA file compared to using a CSV?
Asked
Active
Viewed 1,535 times
1
-
1A CSV will be smaller, and portable. An RDA will be bigger, not portable, but faster to load. – nograpes Feb 20 '14 at 12:01
-
Why don't you save the file both ways and judge for yourself? – Carl Witthoft Feb 20 '14 at 12:28
-
@nograpes RDA need not be bigger, it's often smaller in size than a CSV. – Akeshwar Jha Aug 18 '19 at 13:53
1 Answers
4
Both:
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

Troy
- 8,581
- 29
- 32