valign() controls how content is positioned vertically within a cell — at the top, center, or bottom.
Function signature
Parameters
A
flextable object.Row selector. Accepts integer indices, a one-sided formula, or a logical vector.
NULL selects all rows in the specified part.Column selector. Accepts integer indices, column names, or a formula.
NULL selects all columns.Vertical alignment of the paragraph within the cell. One of:
"top"— align content to the top of the cell."center"— center content vertically (default)."bottom"— align content to the bottom of the cell.
Which part of the table to target:
"body", "header", "footer", or "all".Return value
The modifiedflextable object.