blob: a107eb84a9ac4576429b951ec7868d20a7eada51 [file] [log] [blame]
Hao Zhubff01912017-05-23 18:05:00 -04001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/column_spec.R
3\name{column_spec}
4\alias{column_spec}
5\title{Specify the look of the selected column}
6\usage{
Hao Zhu78e61222017-05-24 20:53:35 -04007column_spec(kable_input, column, width = NULL, bold = FALSE,
8 italic = FALSE)
Hao Zhubff01912017-05-23 18:05:00 -04009}
10\arguments{
11\item{kable_input}{Output of `knitr::kable()` with `format` specified}
12
13\item{column}{A numeric value indicating which column to be selected}
14
15\item{width}{A character string telling HTML & LaTeX how wide the column
16needs to be, e.g. "10cm", "3in" or "30em".}
17
18\item{bold}{A T/F value to control whether the text of the selected column
19need to be bolded.}
20
21\item{italic}{A T/F value to control whether the text of the selected column
22need to be emphasized.}
23}
24\description{
25This function allows users to select a column and then specify
26its look. Right now it supports the following three properties: column width,
27bold text and italic text.
28}
Hao Zhu78e61222017-05-24 20:53:35 -040029\examples{
30x <- knitr::kable(head(mtcars), "html")
31column_spec(x, 1, width = "20em", bold = TRUE, italic = TRUE)
32
33}