as_calibrated.data.frame: Calibrate Data Frame Column Widths

View source: R/gridtable.R

as_calibrated.data.frameR Documentation

Calibrate Data Frame Column Widths

Description

Assign column-level width attributes to a data frame and return a calibrated data frame for downstream table rendering. Widths are recycled as necessary; a warning is issued when the number of supplied widths differs from the number of columns.

Usage

## S3 method for class 'data.frame'
as_calibrated(x, width, ...)

Arguments

x

A data frame.

width

Character or numeric vector of column widths. Values are recycled as necessary.

...

Currently unused.

Value

A data frame with class calibrated and column-level width attributes.

See Also

as_calibrated, column_spec

Other gridtable: as.data.frame.gridtable(), as_calibrated(), as_gridtable(), as_gridtable.character(), as_gridtable.data.frame(), kbl(), kbl.calibrated(), kbl.default(), kbl.gridtable(), print.gridtable()


tablet documentation built on July 19, 2026, 9:06 a.m.