Define displayed values and mixed content
tab <- flextable(head(mtcars[,c(1:8)]))
tab <- mk_par(tab, j=1,
value=as_paragraph("Miles/(US) gallon"),
part="header")
Define displayed values and mixed content
tab <- flextable(head(mtcars[,c(1:8)]))
tab <- mk_par(tab, j=1,
value=as_paragraph("Miles/(US) gallon"),
part="header")
tab <- width(tab, j=1, width=2) # Column width
tab <- align(tab, part="all",
align="center") # Text alignment
Highlights
tab <- flextable(head(mtcars[,c(1:8)]))
tab <- highlight(tab, j="hp", i = ~ hp > 100, color="green")
tab <- append_chunks(tab, i = ~ mpg < 20, j="cyl",
as_chunk("***", props=fp_text_default(color="red")))