Description Usage Arguments Value Author(s) Examples
Rounds numbers to text and drops leading zeros in the process.
1 |
x |
A vector of values to be rounded (must be numeric). |
digits |
The number of digits to round to (must be an integer). |
add |
An optional dichotomous indicator for whether additional digits should be added if no numbers appear in pre-set digit level. |
max |
Maximum number of digits to be shown if |
A vector of length equal to that of x
of class character
.
Josh Pasek, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.