R/math.R
isEven.Rd
This function checks if a number is even.
isEven(x)
A numeric vector.
A logical vector indicating whether each element is even.
# Check if numbers are even isEven(c(1, 2, 3, 4)) #> [1] FALSE TRUE FALSE TRUE