R/is-vector.R

Defines functions is.simple.vector

Documented in is.simple.vector

#' Check for being THE vector
#' 
#' Check if object is what ordinary R user considers as a vector,
#' i.e. unidimensional non-list collection of elements of the same kind.  
#' 
#' @param x object to be tested.
#' 
#' @export

is.simple.vector <- function(x) {
  is.atomic(x) && !is.recursive(x) && !is.array(x)
}
twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.