Description Usage Arguments Value Examples
round_int
takes a numeric input x
and rounds each element
to the nearest integer. Ties are broken using a 'half-up' rule. This is
different from R's default rounding method, which breaks ties by rounding
to the nearest even number (i.e. 'half-even').
1 | round_int(x)
|
x |
A numeric vector. |
The function returns the vector x
rounded to the nearest
integer.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.