Learn R Programming

broman (version 0.59-5)

objectsizes: Calculate sizes of all objects in workspace

Description

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

Usage

objectsizes(obj, 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
print(output <- objectsizes())
sum(output)

Run the code above in your browser using DataLab