objectsizes | R Documentation |
Calculate the sizes of all of the objects in one's workspace.
objectsizes(obj = NULL, sortbysize = TRUE)
obj |
Vector of object names. If missing, we pull out all object names. |
sortbysize |
If TRUE, sort the objects from smallest to largest. |
Calls utils::object.size()
repeated to get the size of a
list of objects.
A data frame with the only column being the size of each object in megabytes (MB). The row names are the names of the objects.
utils::object.size()
, base::objects()
print(output <- objectsizes())
## Not run: sum(output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.