Skip to contents

This function checks if a number is even.

Usage

isEven(x)

Arguments

x

A numeric vector.

Value

A logical vector indicating whether each element is even.

Examples

# Check if numbers are even
isEven(c(1, 2, 3, 4))
#> [1] FALSE  TRUE FALSE  TRUE