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(), fit_to_width(), flextable_dim(), height(), hrule(), width()
dim.flextable()
dim_pretty()
fit_to_width()
flextable_dim()
height()
hrule()
width()
# NOT RUN { ft <- flextable(mtcars) # } # NOT RUN { ft <- autofit(ft) # } # NOT RUN { ft # }
Run the code above in your browser using DataLab