Last chance! 50% off unlimited learning
Sale ends in
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()
# NOT RUN {
ft <- flextable(head(mtcars))
ft <- italic(ft, italic = TRUE, part = "header")
# }
Run the code above in your browser using DataLab