Reading large files into R

℡╲_俬逩灬. 提交于 2019-12-05 15:14:27
Matthew Lundberg

From ?read.table

Less memory will be used if colClasses is specified as one of the six atomic vector classes.

...

Using nrows, even as a mild over-estimate, will help memory usage.

Use both of these arguments.

Ensure that you properly specify numeric for your numeric data. See here: Specifying colClasses in the read.csv

And do not under-estimate nrows.

If you're running 64-bit R, you might try the 32-bit version. It will use less memory to hold the same data.

See here also: Extend memory size limit in R

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!