ll {gregmisc}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=1, unit=c("KB","MB","bytes"), digits=0, dimensions=FALSE,
        function.dim="", ...)

Arguments

pos environment position number or name.
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

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",]

[Package Contents]