R/check_attr.R

Defines functions check_attr

Documented in check_attr

#' Check if object has attribute "map"
#'
#' Useful with [dplyr::mutate_if()]
#' @param x Vector
#' @return `TRUE` or `FALSE`
#' @example man/examples/check_attr.R
#' @export
check_attr <- function(x){
  !is.null(attr(x, "map"))
}
swehip/slrplotfun documentation built on Oct. 25, 2022, 10:50 a.m.