Show memory usage of R objects
To show the sizes of objects in memory (in decreasing order of size):
objectsizes <- sapply(ls(), function(x) {object.size(eval(as.name(x)))})
objectsizes[order(objectsizes, decreasing = TRUE)]
Comments
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!