blob: 6145d017345347f63e93af89b3bcc44e74bb8130 [file] [log] [blame]
Hao Zhu8f417202017-05-20 16:37:14 -04001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/add_indent.R
3\name{add_indent}
4\alias{add_indent}
5\title{Add indentations to row headers}
6\usage{
Hao Zhu9410a272020-08-03 01:11:47 -04007add_indent(kable_input, positions, level_of_indent = 1, all_cols = F)
Hao Zhu8f417202017-05-20 16:37:14 -04008}
Hao Zhubd95bb22017-05-22 16:08:49 -04009\arguments{
Hao Zhu76281fe2017-07-03 19:33:09 -040010\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
Hao Zhubd95bb22017-05-22 16:08:49 -040011
12\item{positions}{A vector of numeric row numbers for the rows that need to
13be indented.}
Hao Zhu9410a272020-08-03 01:11:47 -040014
15\item{level_of_indent}{a numeric value for the indent level. Default is 1.}
Hao Zhubd95bb22017-05-22 16:08:49 -040016}
Hao Zhu8f417202017-05-20 16:37:14 -040017\description{
18Add indentations to row headers
19}
Hao Zhu78e61222017-05-24 20:53:35 -040020\examples{
21x <- knitr::kable(head(mtcars), "html")
22# Add indentations to the 2nd & 4th row
Hao Zhu9410a272020-08-03 01:11:47 -040023add_indent(x, c(2, 4), level_of_indent = 1)
Hao Zhu78e61222017-05-24 20:53:35 -040024
25}