powered by
Format character cells in a flextable.
colformat_char(x, ...)# S3 method for flextable colformat_char( x, j = NULL, col_keys = NULL, na_str = "", prefix = "", suffix = "", ... )
# S3 method for flextable colformat_char( x, j = NULL, col_keys = NULL, na_str = "", prefix = "", suffix = "", ... )
a flextable object
additional arguments, i can be used to specify a row selector.
columns selection.
names of the colkeys. Will be deprectated in favor of j in the next version.
string to be used for NA values
string to be used as prefix or suffix
Other cells formatters: colformat_int(), colformat_lgl(), colformat_num(), compose(), set_formatter()
colformat_int()
colformat_lgl()
colformat_num()
compose()
set_formatter()
# NOT RUN { dat <- iris ft <- flextable(head(dat)) ft <- colformat_char( x = ft, j = "Species", suffix = "!") ft <- autofit(ft) # }
Run the code above in your browser using DataLab