powered by
Rounds numbers to text and drops leading zeros in the process.
rd(x, digits=2, add=TRUE, max=(digits+3))
A vector of values to be rounded (must be numeric).
The number of digits to round to (must be an integer).
An optional dichotomous indicator for whether additional digits should be added if no numbers appear in pre-set digit level.
Maximum number of digits to be shown if add=TRUE.
add=TRUE
A vector of length equal to that of x of class character.
x
character
# NOT RUN { rd(seq(0, 1, by=.1)) # }
Run the code above in your browser using DataLab