R/valid_atomic.R

Defines functions valid_atomic

valid_atomic <- function(x, name = "x") {
  if (!is.atomic(x) || !is.null(dim(x)))
    stop(name, " must be an (atomic) vector")
  invisible(x)
}

Try the naflex package in your browser

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

naflex documentation built on Oct. 15, 2024, 9:10 a.m.