R: Merge flextable cells vertically

merge_v {flextable} | R Documentation

## Merge flextable cells vertically

### Description

Merge flextable cells vertically when consecutive cells have identical values.

### Usage

    merge_v(x, j = NULL, part = "body")

### Arguments

`x` | `flextable` object
`j` | columns names/keys where cells have to be merged.
`part` | partname of the table where merge has to be done.

### Examples

    ft_merge <- flextable(mtcars)
    ft_merge <- merge_v(ft_merge, j = c("gear", "carb"))
    ft_merge

[Package flextable version 0.4.5 Index]