megv
megv

Reputation: 1461

Reached total allocation of memory in R

I am running the following code in R

sort1.name <- name[order("sessionid","qf","qn") , ]

My data frame is large, but I am not sure how to check its size. The error I am receiving is

Error in FUN(newX[, i], ...) : object 'vec' not found
In addition: Warning messages:
1: In `[.data.frame`(name, order("sessionid", "qf", "qn"), ) :
Reached total allocation of 3583Mb: see help(memory.size)
2: In `[.data.frame`(name, order("sessionid", "qf", "qn"), ) :
Reached total allocation of 3583Mb: see help(memory.size)

I am running on a windows 64 bit operating system. How can I increase memory..or what are my other options to deal with this problem. The size of my data frame is 2591935400 bytes. Do I have any options to deal with a data frame of this size? Is there a function other than order I can use to sort based on 3 columns?

Upvotes: 1

Views: 8636

Answers (1)

megv
megv

Reputation: 1461

Using a virtual machine with more memory solved the problem

Upvotes: 4

Related Questions