powered by
Merge flextable cells into a single one. All rows and columns must be consecutive.
merge_at(x, i = NULL, j = NULL, part = "body")
a 'flextable' object, see flextable-package to learn how to create 'flextable' object.
row selector, see section Row selection with the i parameter in <Selectors in flextable>.
i
Selectors in flextable
column selector, see section Column selection with the j parameter in <Selectors in flextable>.
j
part selector, see section Part selection with the part parameter in <Selectors in flextable>. Value 'all' is not allowed by the function.
part
Other flextable merging function: merge_h(), merge_h_range(), merge_none(), merge_v()
merge_h()
merge_h_range()
merge_none()
merge_v()
ft_merge <- flextable(head(mtcars), cwidth = .5) ft_merge <- merge_at(ft_merge, i = 1:2, j = 1:2) ft_merge
Run the code above in your browser using DataLab