Learn R Programming

flextable (version 0.7.0)

width: Set flextable columns width

Description

control columns width

Usage

width(x, j = NULL, width, unit = "in")

Arguments

x

flextable object

j

columns selection

width

width in inches

unit

unit for width, one of "in", "cm", "mm".

Illustrations

Details

Heights are not used when flextable is been rendered into HTML.

See Also

Other flextable dimensions: autofit(), dim.flextable(), dim_pretty(), fit_to_width(), flextable_dim(), height(), hrule(), ncol_keys(), nrow_part(), set_table_properties()

Examples

Run this code
# NOT RUN {
ft <- flextable(head(iris))
ft <- width(ft, width = 1.5)
ft
# }

Run the code above in your browser using DataLab