Formattable object with suffix
suffix(x, suffix = "", sep = "", ..., na.text = NULL)
an object
a character vector put behind each non-missing
value in x
as being formatted.
separator
additional parameter passed to formattable
.
text for missing values in x
.
# NOT RUN {
suffix(1:10, "px")
suffix(1:10, ifelse(1:10 >= 2, "units", "unit"), sep = " ")
suffix(c(1:10, NA), "km/h", na.text = "(missing)")
suffix(percent(c(0.1, 0.25)), "*")
# }
Run the code above in your browser using DataLab