# RAM limitation while imputing missing values

**URL:** <https://community.drivendata.org/t/ram-limitation-while-imputing-missing-values/2634>\
**Category:** Cold Start Energy Forecasting\
**Created:** [September 9, 2018, 3:49pm UTC](https://community.drivendata.org/t/ram-limitation-while-imputing-missing-values/2634 "2018-09-09T15:49:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabhjain507](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Saurabhjain507](https://community.drivendata.org/u/Saurabhjain507)\
**Post date:** [September 9, 2018, 3:49pm UTC](https://community.drivendata.org/t/ram-limitation-while-imputing-missing-values/2634/1 "2018-09-09T15:49:30Z")

</div>

My laptop has 4GB RAM. I am trying to impute missing values of temperature in the training data set using the mice package. I came across this error while imputing:

> Error: cannot allocate vector of size 12.2 Gb

1. How can I resolve this issue?
2. Any online computing environment where I can perform the imputation operation?

Any feedback appreciated.

Regards,  
Saurabh Jain

---

<div class="post-metadata">

**Author:** ![ironbar](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.drivendata.org/ironbar/32/671_2.png) [@ironbar](https://community.drivendata.org/u/ironbar)\
**Post date:** [September 10, 2018, 1:09pm UTC](https://community.drivendata.org/t/ram-limitation-while-imputing-missing-values/2634/2 "2018-09-10T13:09:43Z")

</div>

If you have RAM problems you should process each sample separately instead of processing the whole dataset at one time.

---

<div class="post-metadata">

**Author:** ![authman](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.drivendata.org/authman/32/668_2.png) [@authman](https://community.drivendata.org/u/authman)\
**Post date:** [September 11, 2018, 5:12pm UTC](https://community.drivendata.org/t/ram-limitation-while-imputing-missing-values/2634/3 "2018-09-11T17:12:02Z")

</div>

[https://duckduckgo.com/?q=swap+memory](https://duckduckgo.com/?q=swap+memory)
