blob: d8237addb8ee25e60597ffa7caa1a9cf368cbe1b [file] [log] [blame]
Hao Zhu79f1e2a2017-06-11 20:55:30 -04001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/row_spec.R
3\name{row_spec}
4\alias{row_spec}
5\title{Specify the look of the selected row}
6\usage{
7row_spec(kable_input, row, bold = FALSE, italic = FALSE)
8}
9\arguments{
Hao Zhu76281fe2017-07-03 19:33:09 -040010\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
Hao Zhu79f1e2a2017-06-11 20:55:30 -040011
Hao Zhu2a87e8e2017-06-14 15:49:33 -040012\item{row}{A numeric value indicating which row to be selected. You don't
13need to count in header rows or group labeling rows.}
Hao Zhu79f1e2a2017-06-11 20:55:30 -040014
15\item{bold}{A T/F value to control whether the text of the selected row
16need to be bolded.}
17
18\item{italic}{A T/F value to control whether the text of the selected row
19need to be emphasized.}
20}
21\description{
22This function allows users to select a row and then specify
23its look. Right now it supports the following two properties: bold text and
24italic text.
25}
26\examples{
27x <- knitr::kable(head(mtcars), "html")
28row_spec(x, 1, bold = TRUE, italic = TRUE)
29
30}