isempty Property
Determine if an object is empty.
isempty(x)
x |
an R object |
An empty object has length zero.
TRUE
if x
has length 0; otherwise, FALSE
.
isempty(c(0)) # FALSE isempty(matrix(0, 1, 0)) # TRUE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.