flextable (version 0.5.6)

colformat_int: format integer cells

Description

Format integer cells in a flextable.

Usage

colformat_int(x, ...)

# S3 method for flextable colformat_int(x, j = NULL, col_keys = NULL, big.mark = ",", na_str = "", prefix = "", suffix = "", ...)

Arguments

x

a flextable object

...

additional arguments, i can be used to specify a row selector.

j

columns selection.

col_keys

names of the colkeys. Will be deprectated in favor of j in the next version.

big.mark
na_str

string to be used for NA values

prefix

string to be used as prefix or suffix

suffix

string to be used as prefix or suffix

See Also

Other cells formatters: colformat_char, colformat_lgl, colformat_num, compose

Examples

Run this code
# NOT RUN {
dat <- mtcars

ft <- flextable(dat)
colkeys <- c("vs", "am", "gear", "carb")
ft <- colformat_int(x = ft, col_keys = colkeys, prefix = "# ")
autofit(ft)
# }

Run the code above in your browser using DataCamp Workspace