gdata (version 2.18.0)

elem: Display Information about Elements in a Given Object

Description

This function is depreciated. Please use ll instead.

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

Usage

elem(object=1, unit=c("KB","MB","bytes"), digits=0,
                 dimensions=FALSE)

Arguments

object

object containing named elements, perhaps a model or data frame.

unit

required unit for displaying element size: "KB", "MB", "bytes", or first letter.

digits

number of decimals to display when rounding element size.

dimensions

whether element dimensions should be returned.

Value

A data frame with named rows and the following columns:

Class

element class.

KB

element size (see notes).

Dim

element dimensions (optional).

Details

A verbose alternative to names().

See Also

names, str, and summary display different information about object elements.

ll and env are related to elem.

Examples

Run this code
# NOT RUN {
data(infert)
elem(infert)
model <- glm(case~spontaneous+induced, family=binomial, data=infert)
elem(model, dim=TRUE)
elem(model$family)
# }

Run the code above in your browser using DataLab