Skip to contents

Test the length of an R object

Usage

is.length0(x = NULL)

is.length1(x = NULL)

Arguments

x

an R object.

Value

A length 1 logical vector.

Examples

is.length0() ## TRUE
#> Error in is.length0(): could not find function "is.length0"
is.length0(NULL) ## TRUE
#> Error in is.length0(NULL): could not find function "is.length0"
is.length0("") ## FALSE
#> Error in is.length0(""): could not find function "is.length0"
is.length0(NA) ## FALSE
#> Error in is.length0(NA): could not find function "is.length0"
is.length1("") ## TRUE
#> Error in is.length1(""): could not find function "is.length1"
is.length1(NA) ## TRUE
#> Error in is.length1(NA): could not find function "is.length1"
is.length1(c(NULL, NA)) ## TRUE
#> Error in is.length1(c(NULL, NA)): could not find function "is.length1"
is.length1(NULL) ## FALSE
#> Error in is.length1(NULL): could not find function "is.length1"
is.length1(1:2) ## FALSE
#> Error in is.length1(1:2): could not find function "is.length1"