R/attrnames.R

Defines functions attrnames

Documented in attrnames

#' Get names of attributes
#'
#' Get the names of the attributes of an object
#'
#' @param object Any object
#'
#' @return Vector of character strings with the names of the attributes.
#'
#' @details It just does `names(attributes(object))`.
#'
#' @export
#' @keywords utilities
#' @examples
#' x <- matrix(1:100, ncol=5)
#' colnames(x) <- LETTERS[1:5]
#' attrnames(x)

attrnames <-
    function(object) names(attributes(object))

Try the broman package in your browser

Any scripts or data that you put into this service are public.

broman documentation built on May 29, 2024, 7:18 a.m.