Hao Zhu | 8f41720 | 2017-05-20 16:37:14 -0400 | [diff] [blame] | 1 | % 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{ |
| 7 | add_indent(kable_input, positions) |
| 8 | } |
Hao Zhu | bd95bb2 | 2017-05-22 16:08:49 -0400 | [diff] [blame] | 9 | \arguments{ |
| 10 | \item{kable_input}{Output of `knitr::kable()` with `format` specified} |
| 11 | |
| 12 | \item{positions}{A vector of numeric row numbers for the rows that need to |
| 13 | be indented.} |
| 14 | } |
Hao Zhu | 8f41720 | 2017-05-20 16:37:14 -0400 | [diff] [blame] | 15 | \description{ |
| 16 | Add indentations to row headers |
| 17 | } |
Hao Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame^] | 18 | \examples{ |
| 19 | x <- knitr::kable(head(mtcars), "html") |
| 20 | # Add indentations to the 2nd & 4th row |
| 21 | add_indent(x, c(2, 4)) |
| 22 | |
| 23 | } |