Hao Zhu | bff0191 | 2017-05-23 18:05:00 -0400 | [diff] [blame] | 1 | % 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 Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame] | 7 | column_spec(kable_input, column, width = NULL, bold = FALSE, |
| 8 | italic = FALSE) |
Hao Zhu | bff0191 | 2017-05-23 18:05:00 -0400 | [diff] [blame] | 9 | } |
| 10 | \arguments{ |
Hao Zhu | 76281fe | 2017-07-03 19:33:09 -0400 | [diff] [blame] | 11 | \item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified} |
Hao Zhu | bff0191 | 2017-05-23 18:05:00 -0400 | [diff] [blame] | 12 | |
Hao Zhu | bf5bfe2 | 2017-06-21 14:37:41 -0400 | [diff] [blame] | 13 | \item{column}{A numeric value indicating which column to be selected. When |
| 14 | you do the counting, ignore the extra header columns you added through |
| 15 | add_header_left.} |
Hao Zhu | bff0191 | 2017-05-23 18:05:00 -0400 | [diff] [blame] | 16 | |
| 17 | \item{width}{A character string telling HTML & LaTeX how wide the column |
| 18 | needs to be, e.g. "10cm", "3in" or "30em".} |
| 19 | |
| 20 | \item{bold}{A T/F value to control whether the text of the selected column |
| 21 | need to be bolded.} |
| 22 | |
| 23 | \item{italic}{A T/F value to control whether the text of the selected column |
| 24 | need to be emphasized.} |
| 25 | } |
| 26 | \description{ |
| 27 | This function allows users to select a column and then specify |
| 28 | its look. Right now it supports the following three properties: column width, |
| 29 | bold text and italic text. |
| 30 | } |
Hao Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame] | 31 | \examples{ |
| 32 | x <- knitr::kable(head(mtcars), "html") |
| 33 | column_spec(x, 1, width = "20em", bold = TRUE, italic = TRUE) |
| 34 | |
| 35 | } |