Learn R Programming

dMod (version 1.0.2)

attrs: Select attributes.

Description

Select or discard attributes from an object.

Usage

attrs(x, atr = NULL, keep = TRUE)

Arguments

x

The object to work on

atr

An optional list of attributes which are either kept or removed. This parameter defaults to dim, dimnames, names, col.names, and row.names.

keep

For keep = TRUE, atr is a positive list on attributes which are kept, for keep = FALSE, atr are removed.

Value

x with selected attributes.