pubformat | R Documentation |
Format numbers according to a specified handler function. Currently supported are sprintf, format and prettyNum.
pubformat(x, digits = 2, nsmall = digits, handler = "sprintf", ...)
x |
numeric vector |
digits |
number of digits |
nsmall |
see handler |
handler |
String specififying the name of the function which should
perform the formatting. See |
... |
Passed to handler function if applicable, i.e., not to |
Formatted number
Thomas A. Gerds <tag@biostat.ku.dk>
sprintf
, format
, prettyNum
pubformat(c(0.000143,12.8,1)) pubformat(c(0.000143,12.8,1),handler="format") pubformat(c(0.000143,12.8,1),handler="format",trim=TRUE) pubformat(c(0.000143,12.8,1),handler="prettyNum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.