Skip to contents

Return TRUE if the value is even.

Usage

is_even(x)

Arguments

x

A numeric vector

Value

A boolean vector with the return from the condition check.

Examples


is_even(4)
#> [1] TRUE

is_even(3)
#> [1] FALSE