Last active
August 29, 2015 14:21
-
-
Save wolkym/84ac0f71a31910a5d1e6 to your computer and use it in GitHub Desktop.
R memory consumption by objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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