latex_markup: Add LaTeX markup to R data.

Description Usage Arguments Examples

View source: R/latex_markup.R

Description

Adds LaTeX markup to R data.

Usage

1

Arguments

df

The dataframe, data.table, tibble, etc, containing the data to add LaTeX markup to.

...

One or more unquoted variable names, with quoted Latex environment names without backslashes or curly braces, separated by commas. Accepts asterisks, square brackets, etc. #@param markup_style

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

x <- latex_markup(iris, Species="section", Petal.Width="subsection*")

 # >  head(x)
 #    Sepal.Length Sepal.Width Petal.Length       Petal.Width           Species
 #  1          5.1         3.5          1.4 \\subsection*{0.2} \\section{setosa}
 #  2          4.9         3.0          1.4 \\subsection*{0.2} \\section{setosa}
 #  3          4.7         3.2          1.3 \\subsection*{0.2} \\section{setosa}
 #  4          4.6         3.1          1.5 \\subsection*{0.2} \\section{setosa}
 #  5          5.0         3.6          1.4 \\subsection*{0.2} \\section{setosa}
 #  6          5.4         3.9          1.7 \\subsection*{0.4} \\section{setosa}

 

## End(Not run)

evanodell/emisc documentation built on May 30, 2019, 8:28 a.m.