
Last chance! 50% off unlimited learning
Sale ends in
Merge flextable columns into a single one for each selected rows. All columns must be consecutive.
merge_h_range(x, i = NULL, j1 = NULL, j2 = NULL, part = "body")
flextable
object
selected rows
selected columns that will define the range of columns to merge.
partname of the table where merge has to be done.
Other flextable merging function: merge_at
,
merge_h
, merge_none
,
merge_v
# NOT RUN {
ft <- flextable( head( mtcars ), cwidth = .5 )
ft <- merge_h_range( ft, i = ~ cyl == 6, j1 = "am", j2 = "carb")
ft
# }
Run the code above in your browser using DataLab