I'm trying to remove a column from a large data frame by setting it to NULL (x$abc=NULL
). Surprisingly, this caused a memory usage spike and I got a typical out-of-memory error message:
Error: cannot allocate vector of size 657.76 Mb In addition: Warning messages: ...
Why is this happening? And how do I avoid it?