powered by
Format character columns in a flextable or regulartable.
colformat_char(x, col_keys, na_str = "", prefix = "", suffix = "")
a regulartable object
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_num
colformat_int
colformat_num
# 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