powered by
compute and apply optimized widths and heights. This function is to be used when the table widths and heights should automatically be adjusted to fit the size of the content.
autofit(x, add_w = 0.1, add_h = 0.1)
flextable object
extra width to add in inches
extra height to add in inches
Other flextable dimensions: dim.flextable, dim_pretty, flextable_dim, height, width
dim.flextable
dim_pretty
flextable_dim
height
width
# NOT RUN { ft <- flextable(mtcars) # } # NOT RUN { ft <- autofit(ft) # } # NOT RUN { ft # }
Run the code above in your browser using DataLab