blob: 78898025539e1a3d1cedd33e22e3b34f8c875d5b [file] [log] [blame]
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_indent.R
\name{add_indent}
\alias{add_indent}
\title{Add indentations to row headers}
\usage{
add_indent(kable_input, positions, level_of_indent = 1, all_cols = FALSE)
}
\arguments{
\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
\item{positions}{A vector of numeric row numbers for the rows that need to
be indented.}
\item{level_of_indent}{a numeric value for the indent level. Default is 1.}
}
\description{
Add indentations to row headers
}
\examples{
x <- knitr::kable(head(mtcars), "html")
# Add indentations to the 2nd & 4th row
add_indent(x, c(2, 4), level_of_indent = 1)
}