powered by
Format character columns in a flextable.
colformat_char(x, ...)# S3 method for flextable colformat_char(x, col_keys, na_str = "", prefix = "", suffix = "", ...)
# S3 method for flextable colformat_char(x, col_keys, na_str = "", prefix = "", suffix = "", ...)
a flextable object
additional arguments, unused
names of the colkeys
string to be used for NA values
string to be used as prefix or suffix
Other columns formatters: colformat_int, colformat_lgl, colformat_num
colformat_int
colformat_lgl
colformat_num
# NOT RUN { dat <- iris ft <- flextable(dat) ft <- colformat_char( x = ft, col_keys = "Species", suffix = "!") autofit(ft) # }
Run the code above in your browser using DataLab