R/getAttributeNames.R

Defines functions getAttributeNames

Documented in getAttributeNames

#' @title Helper function for determining the vector of attribute names of a given object
#'
#' @description
#' Returns the names of all attributes of an object.
#'
#' @param obj [any]\cr
#'   Source object.
#' @return [\code{character}]
#'   Vector of attribute names for the source object.
#' @export
getAttributeNames = function(obj) {
  names(attributes(obj))
}

Try the BBmisc package in your browser

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

BBmisc documentation built on Nov. 6, 2026, 1:06 a.m.