powered by
Format logical cells in a flextable.
colformat_lgl(x, ...)# S3 method for flextable colformat_lgl( x, j = NULL, col_keys = NULL, true = "true", false = "false", na_str = "", prefix = "", suffix = "", ... )
# S3 method for flextable colformat_lgl( x, j = NULL, col_keys = NULL, true = "true", false = "false", na_str = "", prefix = "", suffix = "", ... )
a flextable object
additional arguments, i can be used to specify a row selector.
columns selection.
names of the colkeys. Will be deprectated in favor of j in the next version.
string to be used for logical
string to be used for NA values
string to be used as prefix or suffix
Other cells formatters: colformat_char(), colformat_int(), colformat_num(), compose()
colformat_char()
colformat_int()
colformat_num()
compose()
# 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