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