powered by
change text alignment of selected rows and columns of a flextable.
align(x, i = NULL, j = NULL, align = "left", part = "body")
a flextable object
rows selection
columns selection
text alignment - a single character value, expected value is one of 'left', 'right', 'center', 'justify'.
partname of the table (one of 'all', 'body', 'header')
# NOT RUN { ft <- flextable(mtcars) ft <- align(ft, align = "center") # }
Run the code above in your browser using DataLab