powered by
Tests if an object is a single even number
is_single_even(x)
an R object
is_single, is_single_odd
is_single
is_single_odd
is_single_even(2) # TRUE is_single_even(5) # FALSE is_single_even(c(1.0,2)) # FALSE is_single_even(-1.0) # FALSE is_single_even(0) # TRUE is_single_even(NA) # FALSE
Run the code above in your browser using DataLab