prefix {formattable} | R Documentation |
Formattable object with prefix
Description
Formattable object with prefix
Usage
prefix(x, prefix = "", sep = "", ..., na.text = NULL)
Arguments
x |
an object |
prefix |
a character vector put in front of each non-missing
value in |
sep |
separator |
... |
additional parameter passed to |
na.text |
text for missing values in |
Examples
prefix(1:10, "A")
prefix(1:10, "Choice", sep = " ")
prefix(c(1:10, NA), prefix = "A", na.text = "(missing)")
prefix(rnorm(10, 10), "*", format = "d")
prefix(percent(c(0.1,0.25)), ">")
[Package formattable version 0.2.1 Index]