is.empty: Use this function to check if a variable is empty or not

View source: R/rutils.R

is.emptyR Documentation

Use this function to check if a variable is empty or not

Description

Use this function to check if a variable is empty or not

Usage

is.empty(x)

Arguments

x

A variable. Can be a vector,matrix,list or data.frame

Value

A boolean: TRUE if argument x is empty, FALSE otherwise

Examples

a = matrix()
is.empty(a)
[1] TRUE
a = c(2, 4)
is.empty(a)
[1] FALSE


genpack/gener documentation built on March 14, 2023, 9:52 a.m.