Clearing up memory in R

There's basically two ways that I know of to clear up memory in R.

1. rm(
2. gc()

The first one basically removes your variable of vector or data frame from your workspace. But somehow rather the memory can sometimes (or in my case, all the time) still be consumed by R based on Task Manager. That's when garbage collection ( gc() ) comes in handy. 

For more info on gc(), use ?gc

Comments

Popular posts from this blog

A Basic Recipe for Machine Learning

HIVE: Both Left and Right Aliases Encountered in Join

MVNO: Through thick and thin