Learn R Programming

flextable (version 0.4.6)

colformat_char: format character columns

Description

Format character columns in a flextable or regulartable.

Usage

colformat_char(x, col_keys, na_str = "", prefix = "", suffix = "")

Arguments

x

a regulartable object

col_keys

names of the colkeys

na_str

string to be used for NA values

prefix, suffix

string to be used as prefix or suffix

See Also

Other columns formatters: colformat_int, colformat_num

Examples

Run this code
# NOT RUN {
dat <- iris
ft <- regulartable(dat)
ft <- colformat_char(
  x = ft, col_keys = "Species", suffix = "!")
autofit(ft)
# }

Run the code above in your browser using DataLab