flextable (version 0.5.11)

flextable_dim: width and height of a flextable object

Description

Returns the width, height and aspect ratio of a flextable in a named list. The width and height are in inches. The aspect ratio is the ratio corresponding to height/width.

Names of the list are width, height and aspect_ratio.

Usage

flextable_dim(x)

Arguments

x

a flextable object

See Also

Other flextable dimensions: autofit(), dim.flextable(), dim_pretty(), fit_to_width(), height(), hrule(), set_table_properties(), width()

Examples

Run this code
# NOT RUN {
ftab <- flextable(head(iris))
flextable_dim(ftab)
ftab <- autofit(ftab)
flextable_dim(ftab)
# }

Run the code above in your browser using DataLab