prefix: Formattable object with prefix

View source: R/val_prefix.R

prefixR 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 x as being formatted.

sep

separator

...

additional parameter passed to formattable().

na.text

text for missing values in x.

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)), ">")

renkun-ken/formattable documentation built on Dec. 7, 2024, 10:19 p.m.