flextable (version 0.5.1)

autofit: Adjusts cell widths and heights

Description

compute and apply optimized widths and heights.

Usage

autofit(x, add_w = 0.1, add_h = 0.1)

Arguments

x

flextable object

add_w

extra width to add in inches

add_h

extra height to add in inches

Examples

Run this code
# NOT RUN {
ft <- flextable(mtcars)
# }
# NOT RUN {
ft <- autofit(ft)
# }
# NOT RUN {
ft
# }

Run the code above in your browser using DataLab