fmt | R Documentation |
Converts a number to favoured formats for inclusion in texts and reports.
fmt(x, fmt = "count", dp = 1)
x |
Numerical vector to be formatted. |
fmt |
Character vector specifying the type of format to be applied. |
dp |
Decimal place |
A Character vector
fy
fmt(10.34456,"rate")
fmt(10.34456,"rate", dp=3)
fmt(.1,"rate", dp=3)
paste0(fmt(10.34456,"percent"),"%")
fmt(1034456,"count")
fmt(.001,"rate")
fmt(.001,"p_val")
fmt(.001,"percent")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.