Description Usage Arguments Examples
Adds LaTeX markup to R data.
1 |
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.