Description Usage Arguments Value See Also Examples
roundSim
takes a vector or data.frame object and returns the same
type of object, but rounded.
1 |
x |
A |
digits |
An |
percent |
A |
A vector
or data.frame
object.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
data(Brown1974)
roundSim(Brown1974) # returns error
roundSim(Brown1974[,4:9]) # dataframe input, dataframe output
str(roundSim(Brown1974[,4:9])) # vectors are now character-type
roundSim(Brown1974[,4:9], 2)
set.seed(10)
dat <- rnorm(n = 5, mean = 0, sd = 150) # Wider range, vector input
roundSim(dat) # vector output
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.