powered by
Format integer cells in a flextable.
colformat_int( x, i = NULL, j = NULL, big.mark = get_flextable_defaults()$big.mark, na_str = get_flextable_defaults()$na_str, nan_str = get_flextable_defaults()$nan_str, prefix = "", suffix = "" )
a flextable object
rows selection
columns selection.
see format()
format()
string to be used for NA and NaN values
string to be used as prefix or suffix
Other cells formatters: colformat_char(), colformat_datetime(), colformat_date(), colformat_double(), colformat_image(), colformat_lgl(), colformat_num(), set_formatter()
colformat_char()
colformat_datetime()
colformat_date()
colformat_double()
colformat_image()
colformat_lgl()
colformat_num()
set_formatter()
z <- flextable(head(mtcars)) j <- c("vs", "am", "gear", "carb") z <- colformat_int(x = z, j = j, prefix = "# ") z
Run the code above in your browser using DataLab