powered by
Formattable object with prefix
prefix(x, prefix = "", sep = "", ..., na.text = NULL)
an object
a character vector put in front of each non-missing value in x as being formatted.
x
separator
additional parameter passed to formattable.
formattable
text for missing values in x.
# NOT RUN { 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)), ">") # }
Run the code above in your browser using DataLab