Skip to content

Instantly share code, notes, and snippets.

@wolkym
Last active August 29, 2015 14:21
Show Gist options
  • Save wolkym/84ac0f71a31910a5d1e6 to your computer and use it in GitHub Desktop.
Save wolkym/84ac0f71a31910a5d1e6 to your computer and use it in GitHub Desktop.
R memory consumption by objects
# http://stackoverflow.com/questions/1395270/determining-memory-usage-of-objects
sort( sapply(ls(),function(x){object.size(get(x))}))
print(object.size(x=lapply(ls(), get)), units="Mb")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment