powered by
Format integer columns in a flextable or regulartable.
colformat_int(x, col_keys, big.mark = ",", na_str = "", prefix = "", suffix = "")
a regulartable object
names of the colkeys
see formatC
formatC
string to be used for NA values
string to be used as prefix or suffix
Other columns formatters: colformat_char, colformat_num
colformat_char
colformat_num
# NOT RUN { dat <- mtcars ft <- regulartable(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 DataLab