set_widths: Set column widths in a flextable.

View source: R/flextable_tools.R

set_widthsR Documentation

Set column widths in a flextable.

Description

Sets widths of columns in a 'flextable' object.

Usage

set_widths(x, widths, unit = c("cm", "mm", "in"))

Arguments

x

a 'flextable' object.

widths

a numeric vector with widths of the columns, begining from the first one.

unit

unit of width, one of 'cm' (default), 'mm' or 'in'.

Value

a 'flextable' class object.


PiotrTymoszuk/figur documentation built on July 16, 2024, 1:15 a.m.