I am worknig with 2 dataframes in r and when I try to merge them there is an erro: Error: cannot allocate vector of size 565.3 Mb
If I check: memory.limit()
memory.limit() [1] 1.759219e+13
My PC 8GB RAM.
What can I do to solve this issue??
I am worknig with 2 dataframes in r and when I try to merge them there is an erro: Error: cannot allocate vector of size 565.3 Mb
If I check: memory.limit()
memory.limit() [1] 1.759219e+13
My PC 8GB RAM.
What can I do to solve this issue??
If you need to merge large data frames in R, one good option is to do it in pieces of, say 10000 rows. If you're merging data frames x and y, loop over 10000-row pieces of x, merge (or rather use plyr::join) with y and immediately append these results to a sigle csv-file. After all pieces have been merged and written to file, read that csv-file. This is very memory-efficient with proper use of logical index vectors and well placed rm and gc calls. It's not fast though.