
Last chance! 50% off unlimited learning
Sale ends in
Determine if object is empty.
isempty(A)
Returns TRUE
if x
is an empty object; otherwise, FALSE
.
object to evaluate
P. Roebuck proebuck1701@gmail.com
An empty object has at least one dimension of size zero.
isempty(1:3) # FALSE
isempty(array(NA, c(2, 0, 2))) # TRUE
Run the code above in your browser using DataLab