powered by
Returns the width, height and aspect ratio of a flextable in a named list. The aspect ratio is the ratio corresponding to height/width.
height/width
Names of the list are width, height and aspect_ratio.
width
height
aspect_ratio
flextable_dim(x, unit = "in")
a flextable object
unit for returned values, one of "in", "cm", "mm".
Other flextable dimensions: autofit(), dim.flextable(), dim_pretty(), fit_to_width(), height(), hrule(), ncol_keys(), nrow_part(), set_table_properties(), width()
autofit()
dim.flextable()
dim_pretty()
fit_to_width()
height()
hrule()
ncol_keys()
nrow_part()
set_table_properties()
width()
ftab <- flextable(head(iris)) flextable_dim(ftab) ftab <- autofit(ftab) flextable_dim(ftab)
Run the code above in your browser using DataLab