| are_even | R Documentation |
Are elements of a vector even?
are_even(
x,
check_integerish = TRUE,
keep_nas = TRUE,
nThread = getOption("hutilscpp.nThread", 1L)
)
which_are_even(x, check_integerish = TRUE)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.