R: How to quickly read large .dta files without RAM Limitations

前端 未结 2 1100
执笔经年
执笔经年 2021-01-06 04:55

I have a 10 GB .dta Stata file and I am trying to read it into 64-bit R 3.3.1. I am working on a virtual machine with about 130 GB of RAM (4 TB HD) and the .dta file is abou

2条回答
  •  天命终不由人
    2021-01-06 05:40

    The fastest way to load a large Stata dataset in R is using the readstata13 package. I have compared the performance of foreign, readstata13, and haven packages on a large dataset in this post and the results repeatedly showed that readstata13 is the fastest available package for reading Stata dataset in R.

提交回复
热议问题