'vector memory exhausted (limit reached?)

I am using Rstudio 2022.02.0 Build 443 and macOS Catalina version 10.15.7. I am working on dataset dim= 70856886 observation. I get error which is:

vector memory exhausted (limit reached?)

and I could not solve this problem at all.

The error that get while I was trying to clean my data and imputing my dataset.

The sizes of my two objects are dim(df)=(70856886 15) and dim(d_condition)= (354 6) they have common factor which is subject and the range of subject is from 845 to 1246.

  • My computer RAM: 16 GB 2400 MHz DDR4
  • My processor: 2.6 GHz 6-Core Intel Core i7
  • My Mac: macOS Monterey, version 12.3


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source