Learn R Programming

broman (version 0.72-4)

attrnames: Get names of attributes

Description

Get the names of the attributes of an object

Usage

attrnames(object)

Arguments

object

Any object

Value

Vector of character strings with the names of the attributes.

Details

It just does names(attributes(object)).

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