1

I run a simple below command in R:

a <- merge(a,b,all.x=TRUE)

but suddenly this error comes and so I can't take the result of this command

cannot allocate vector of size 1.5 Gb

Do I need increase the memory? How should I do this?

gung - Reinstate Monica
  • 11,583
  • 7
  • 60
  • 79
user3041372
  • 31
  • 1
  • 4
  • operating system? R version? – cianius Jan 20 '14 at 17:41
  • remove unused objects with rm(), and then gc() to release memory – user1738753 Jan 20 '14 at 18:08
  • are you sure that `a` and `b` have some columns that match? You probably do not want to have all possible combinations of the two sets – Usobi Jan 20 '14 at 18:09
  • they have not same rows i write a<- merge (a,b,by="ID",all.x=TRUE) in "a" one ID number have 3 or 4 reputation that was written in different rows.but in "b" one ID number have exactly one reputation and I want to write each column of "b" for all row of "a" that have the same ID. is it correct? – user3041372 Jan 21 '14 at 05:32
  • I used gc() but it is not work in this situation – user3041372 Jan 21 '14 at 05:45

0 Answers0