align

0th

Percentile

Set text alignment

change text alignment of selected rows and columns of a flextable.

Usage
align(x, i = NULL, j = NULL, align = "left", part = "body")

align_text_col(x, align = "left", header = TRUE, footer = TRUE)

align_nottext_col(x, align = "right", header = TRUE, footer = TRUE)

Arguments
x

a flextable object

i

rows selection

j

columns selection

align

text alignment - a single character value, expected value is one of 'left', 'right', 'center', 'justify'.

part

partname of the table (one of 'all', 'body', 'header', 'footer')

header

should the header be aligned with the body

footer

should the footer be aligned with the body

See Also

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

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

Aliases
  • align
  • align_text_col
  • align_nottext_col
Examples
# NOT RUN {
ft <- flextable(mtcars)
ft <- align(ft, align = "center")
ft <- flextable(mtcars)
ft <- align_text_col(ft, align = "left")
ft <- align_nottext_col(ft, align = "right")
ft
# }
Documentation reproduced from package flextable, version 0.5.6, License: GPL-3

Community examples

Looks like there are no examples yet.