Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

suffix

Formattable object with suffix


Description

Formattable object with suffix

Usage

suffix(x, suffix = "", sep = "", ..., na.text = NULL)

Arguments

x

an object

suffix

a character vector put behind 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

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

formattable

Create 'Formattable' Data Structures

v0.2.1
MIT + file LICENSE
Authors
Kun Ren [aut, cre], Kenton Russell [aut]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.