empty_blanks

0th

Percentile

make blank columns as transparent

blank columns are set as transparent. This is a shortcut function that will delete top and bottom borders, change background color to transparent and display empty content.

Usage
empty_blanks(x)
Arguments
x

a flextable object

See Also

Other sugar functions for table style: align, bg, bold, color, fontsize, font, italic, padding, rotate, valign

Aliases
  • empty_blanks
Examples
# NOT RUN {
typology <- data.frame(
  col_keys = c( "Sepal.Length", "Sepal.Width", "Petal.Length",
                "Petal.Width", "Species" ),
  what = c("Sepal", "Sepal", "Petal", "Petal", " "),
  measure = c("Length", "Width", "Length", "Width", "Species"),
  stringsAsFactors = FALSE )
typology

ft <- flextable(head(iris), col_keys = c("Species",
  "break1", "Sepal.Length", "Sepal.Width",
  "break2", "Petal.Length", "Petal.Width") )
ft <- set_header_df(ft, mapping = typology, key = "col_keys" )
ft <- merge_h(ft, part = "header")
ft <- theme_vanilla(ft)
ft <- empty_blanks(ft)
ft <- width(ft, j = c(2, 5), width = .1 )
ft
# }
Documentation reproduced from package flextable, version 0.5.6, License: GPL-3

Community examples

Looks like there are no examples yet.