R/attribute_names.R

Defines functions attrnames

Documented in attrnames

#' Get Names of Attributes
#'
#' Get the names of the attributes of an input object.
#'
#' @param obj Any object.
#'
#' @return Vector of character strings with the names of the attributes.
#'
#' @export
#'
#' @examples
#' x <- matrix(1:100, ncol = 5)
#' colnames(x) <- LETTERS[1:5]
#' attrnames(x)
attrnames <- function(obj) {
  names(attributes(obj))
}

Try the nima package in your browser

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

nima documentation built on March 13, 2020, 2:10 a.m.