R/is_xlr_type.R

Defines functions is_xlr_type

Documented in is_xlr_type

#' Check if a variable is an xlr type
#' This function tests whether an R variable has a xlr type.
#'
#' @param x a variable you wish to test
#'
#' @return a logical.
#' @export
is_xlr_type <- function(x){
  is_xlr_integer(x) | is_xlr_percent(x) | is_xlr_numeric(x) |
    is_xlr_vector(x) | is_xlr_table(x) | is_xlr_vector(x) |
    is_xlr_format(x) |
    is_xlr_n_percent(x)
}

Try the xlr package in your browser

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

xlr documentation built on Jan. 14, 2026, 9:09 a.m.