R/getAttributeNames.R

Defines functions getAttributeNames

Documented in getAttributeNames

#' Helper function for determining the vector of attribute names
#' of a given 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 Sept. 29, 2022, 5:12 p.m.