Learn R Programming

flextable (version 0.9.11)

dim.flextable: Get column widths and row heights of a flextable

Description

returns widths and heights for each table columns and rows. Values are expressed in inches.

Usage

# S3 method for flextable
dim(x)

Arguments

x

a 'flextable' object, see flextable-package to learn how to create 'flextable' object.

See Also

Other functions for flextable size management: autofit(), dim_pretty(), fit_to_width(), flextable_dim(), height(), hrule(), ncol_keys(), nrow_part(), width()

Examples

Run this code
ftab <- flextable(head(iris))
dim(ftab)

Run the code above in your browser using DataLab