| are_even {hutilscpp} | R Documentation |
Are elements of a vector even?
Description
Are elements of a vector even?
Usage
are_even(
x,
check_integerish = TRUE,
keep_nas = TRUE,
nThread = getOption("hutilscpp.nThread", 1L)
)
which_are_even(x, check_integerish = TRUE)
Arguments
x |
An integer vector. Double vectors may also be used, but will
be truncated, with a warning if any element are not integers.
Long vectors are not supported unless |
check_integerish |
(logical, default: |
keep_nas |
(logical, default: |
nThread |
Number of threads to use. |
Value
For are_even, a logical vector the same length as x,
TRUE whenever x is even.
For which_are_even the integer positions of even values in x.
[Package hutilscpp version 0.10.5 Index]