fround | R Documentation |
fround
rounds the values in its first argument to the specified
number of decimal places with surrounding quotes.
fround(x, digits)
x |
a numeric vector. |
digits |
integer indicating the precision to be used. |
pfround
rounds the values in its first argument to the specified
number of decimal places without surrounding quotes.
Andrew Gelman; Yu-Sung Su
Copied from the arm
package
round
x <- 3.1415926 fround(x, digits=2) pfround(x, digits=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.