ll {gdata}R Documentation

Display Information about Objects in a Given Environment

Description

Display name, class, size, and dimensions of each object in a given environment.

Usage

ll(pos, ...)
## Default S3 method:
ll(pos=1, unit=c("KB","MB","bytes"), digits=0,
        dimensions=FALSE,function.dim="", ...)
## S3 method for class 'data.frame':
ll(pos, ...)
## S3 method for class 'list':
ll(pos, ...)

Arguments

pos environment position number, environment name, list, or data frame.
unit required unit for displaying object size: "KB", "MB", "bytes", or first letter.
digits number of decimals to display when rounding object size.
dimensions whether object dimensions should be returned.
function.dim value to report as the dimension of function objects.
... passed to ls().

Details

A verbose alternative to ls().

Value

A data frame with named rows and the following columns:

Class object class.
KB object size (see notes).
Dim object dimensions (optional).

Note

The name of the object size column is the same as the unit used.

Objects of class classRepresentation, ClassUnionRepresentation, and grob do not have a defined size, so 0 bytes are assumed for those.

Author(s)

Arni Magnusson arnima@u.washington.edu. Data frame and list methods contributed by Jim Rogers james_a_rogers@groton.pfizer.com.

See Also

ls displays names of objects in a given environment.

elem and env are related to ll.

Examples

ll()
ll(all=TRUE)
ll("package:base")
ll("package:base")[ll("package:base")$Class!="function",]

data(iris)
ll(iris)

[Package gdata version 2.0.0 Index]