Learn R Programming

nima (version 0.6.2)

attrnames: Get Names of Attributes

Description

Get the names of the attributes of an input object.

Usage

attrnames(obj)

Arguments

obj

Any object.

Value

Vector of character strings with the names of the attributes.

Examples

Run this code
# NOT RUN {
x <- matrix(1:100, ncol = 5)
colnames(x) <- LETTERS[1:5]
attrnames(x)
# }

Run the code above in your browser using DataLab