Tests if an object is a single even number

is_single_even(x)

Arguments

x

an R object

Examples

is_single_even(2)  # TRUE
#> [1] TRUE
is_single_even(5)  # FALSE
#> [1] FALSE
is_single_even(c(1.0,2))  # FALSE
#> [1] FALSE
is_single_even(-1.0)  # FALSE
#> [1] FALSE
is_single_even(0)  # TRUE
#> [1] TRUE
is_single_even(NA)  # FALSE
#> [1] FALSE