R memory management / cannot allocate vector of size n Mb

后端 未结 8 1996
攒了一身酷
攒了一身酷 2020-11-21 07:18

I am running into issues trying to use large objects in R. For example:

> memory.limit(4000)
> a = matrix(NA, 1500000, 60)
> a = matrix(NA, 2500000,         


        
8条回答
  •  醉酒成梦
    2020-11-21 08:00

    Here is a presentation on this topic that you might find interesting:

    http://www.bytemining.com/2010/08/taking-r-to-the-limit-part-ii-large-datasets-in-r/

    I haven't tried the discussed things myself, but the bigmemory package seems very useful

提交回复
热议问题