lt_align: Set Column Alignment

View source: R/tab.R

lt_alignR Documentation

Set Column Alignment

Description

Override the auto-detected alignment for specific columns. By default, numeric columns are right-aligned and character columns are left-aligned.

Usage

lt_align(x, columns, align = c("left", "center", "right"))

Arguments

x

An lt() object.

columns

Character vector of column names (or a one-sided formula).

align

One of "left", "center", or "right".

Value

x with the alignment recorded.

Examples

lt(head(mtcars)) |> lt_align(~ cyl + gear, "center")

lt documentation built on July 10, 2026, 1:09 a.m.