Learn R Programming

rafalib (version 1.0.4)

largeobj: What are the largest objects in memory?

Description

This function lists all the objects in the global environmnet and lists the n largest.

Usage

largeobj(n = 5, units = "Mb")

Value

a named character string of the size of the 'n' largest objects

Arguments

n

the number of objects to return

units

units to display, see ?object.size

Author

Michael I. Love

Examples

Run this code
x<-rnorm(10^5)
y<-rnorm(10^6)
z<-rnorm(2*10^6)
w<-rnorm(3*10^6)
largeobj(n=3)

Run the code above in your browser using DataLab