flextable (version 0.5.6)

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, width

Examples

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

Run the code above in your browser using DataCamp Workspace