Description Usage Arguments Value Examples
This function rounds a number to a specified integer. If x is a data.frame then rounding is applied to all numeric variables. The function round_5 gives a particularly common use case, as published data is often rounded to the nearest 5 for disclosure control.
1 2 3 |
x |
A numeric vector or a data.frame. |
n |
An integer to round to. |
A numeric vector or a data.frame.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.