inst/templates/is-ers.R

is_even <- function(x) x %% 2 == 0
is_odd <- function(x) x %% 2 != 0

is_empty <- function(x) length(x) == 0

is_true <- function(x) identical(x, TRUE)
is_false <- function(x) identical(x, FALSE)
hrbrmstr/freebase documentation built on July 24, 2022, 2:42 a.m.