Description Usage Arguments See Also Examples
Check that a scalar or vector is integer or can be coerced to integer
1 2 3 4 5 6 7 |
x |
A scalar or a vector. |
name |
The name for |
chk_is_integer
for a stricter test,
and err_tdy_integer_scalar
and
err_tdy_integer_vector
to coerce
to integer where necessary.
1 2 3 4 | x <- 1.0
chk_is_integer_equiv_scalar(x, name = "x")
x <- 1:4
chk_is_integer_equiv_vector(x, name = "x")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.