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)
}
martingerdin/bengaltiger documentation built on Feb. 29, 2020, 4:46 p.m.