
Last chance! 50% off unlimited learning
Sale ends in
control rows height for a part of the flextable when the line height adjustment is "atleast" or "exact".
height(x, i = NULL, height, part = "body")height_all(x, height, part = "all")
flextable object
rows selection
height in inches
partname of the table
height_all
is a convenient function for
setting the same height to all rows (selected
with argument part
).
Other flextable dimensions:
autofit()
,
dim.flextable()
,
dim_pretty()
,
fit_to_width()
,
flextable_dim()
,
hrule()
,
set_table_properties()
,
width()
# NOT RUN {
ft_1 <- flextable(head(iris))
ft_1 <- height(ft_1, height = .5)
ft_1 <- hrule(ft_1, rule = "exact")
ft_1
ft_2 <- flextable(head(iris))
ft_2 <- height_all(ft_2, height = 1)
ft_2 <- hrule(ft_2, rule = "exact")
ft_2
# }
Run the code above in your browser using DataLab