R/IsLength1.R

Defines functions IsLength1

Documented in IsLength1

#' Is length 1
#'
#' Checks if a given object is a non-list vector of length 1
#' @param x A vector. The object to be checked. No default.
#' @export

IsLength1 <- function(x) {
  return(!is.list(x) & is.vector(x) & length(x) == 1)
}
citronmeliss/predictionpackr documentation built on Feb. 10, 2020, 12:19 a.m.