Adds LaTeX markup to R data.
latex_markup(df, ...)
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 |
if (FALSE) { 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} }