R/is_numeric_or_null.R

Defines functions is_numeric_or_null

Documented in is_numeric_or_null

#' Numeric or NULL objects
#'
#' @param ... R objects to check.
#'
#' @return A logical.
#'
#' @examples
is_numeric_or_null <- function(...) {
  vars <- sapply(list(...), function(x) is.numeric(x) | is.null(x))

  ## are all variables true?
  all(vars)
}
jcpsantiago/IScalc documentation built on May 20, 2019, 9:27 a.m.