powered by
change font decoration of selected rows and columns of a flextable.
italic(x, i = NULL, j = NULL, italic = TRUE, part = "body")
a flextable object
rows selection
columns selection
boolean value
partname of the table (one of 'all', 'body', 'header', 'footer')
Other sugar functions for table style: align(), bg(), bold(), color(), empty_blanks(), fontsize(), font(), highlight(), line_spacing(), padding(), rotate(), valign()
align()
bg()
bold()
color()
empty_blanks()
fontsize()
font()
highlight()
line_spacing()
padding()
rotate()
valign()
ft <- flextable(head(mtcars)) ft <- italic(ft, italic = TRUE, part = "header")
Run the code above in your browser using DataLab