Get the names of the attributes of an input object.

attrnames(obj)

Arguments

obj

Any object.

Value

Vector of character strings with the names of the attributes.

Examples

x <- matrix(1:100, ncol = 5) colnames(x) <- LETTERS[1:5] attrnames(x)
#> [1] "dim" "dimnames"
#