Learn R Programming

nima (version 0.3.0)

objsizes: Calculate Sizes of Objects in Workspace

Description

Calculate the sizes of all of the objects in the workspace.

Usage

objsizes(obj, bysize = TRUE)

Arguments

obj

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

bysize

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 to get the sizes of a list of objects.

Examples

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

Run the code above in your browser using DataLab