Learn R Programming

broman (version 0.68-2)

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)

Arguments

obj

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

sortbysize

If TRUE, sort the objects from smallest to largest.

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.

Details

Calls object.size repeated to get the size of a list of objects.

See Also

object.size, objects

Examples

Run this code
# NOT RUN {
print(output <- objectsizes())
# }
# NOT RUN {
sum(output)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab