A learner's notebook.
March 28, 2013
Clear all memory in R
There are several steps to clear all memory in R.
Step-1:
Clear all variables from the workspace.
rm(list=ls(all=TRUE))
Note: if
all=TRUE
option
ls
function ensures to get all variables (even imported by other packages).
Step-2:
Call garbage collector.
gc()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment