1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge_flextable.R
\name{merge_h_range}
\alias{merge_h_range}
\title{rowwise merge of a range of columns}
\usage{
merge_h_range(x, i = NULL, j1 = NULL, j2 = NULL, part = "body")
}
\arguments{
\item{x}{\code{flextable} object}
\item{i}{selected rows}
\item{j1, j2}{selected columns that will define the range of columns to merge.}
\item{part}{partname of the table where merge has to be done.}
}
\description{
Merge flextable columns into a single one for each selected rows. All
columns must be consecutive.
}
\section{Illustrations}{
\if{html}{\figure{fig_merge_h_range_1.png}{options: width="500"}}
}
\examples{
ft <- flextable( head( mtcars ), cwidth = .5 )
ft <- theme_box( ft )
ft <- merge_h_range( ft, i = ~ cyl == 6, j1 = "am", j2 = "carb")
ft <- flextable::align( ft, i = ~ cyl == 6, align = "center")
ft
}
\seealso{
Other flextable merging function:
\code{\link{merge_at}()},
\code{\link{merge_h}()},
\code{\link{merge_none}()},
\code{\link{merge_v}()}
}
\concept{flextable merging function}
|