Learn R Programming

broman (version 0.84)

objectsizes: Calculate sizes of all objects in workspace

Description

Calculate the sizes of all of the objects in one's workspace.

Usage

objectsizes(obj = NULL, sortbysize = TRUE)

Value

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.

Arguments

obj

Vector of object names. If missing, we pull out all object names.

sortbysize

If TRUE, sort the objects from smallest to largest.

Details

Calls utils::object.size() repeated to get the size of a list of objects.

See Also

Examples

Run this code
print(output <- objectsizes())
if (FALSE) sum(output)

Run the code above in your browser using DataLab