View source: R/array_to_latex.R
array_to_latex | R Documentation |
Convert an R array into LaTeX for easy writing in Rmarkdown
array_to_latex(A, fraction = TRUE)
A |
An array to convert to Latex format |
fraction |
An option of whether to print the result as a decimal or fracion |
A string that can be put into an Rmarkdown document by using cat()
to direct the output
latex_string <- array_to_latex(matrix(1:6, 3, 2)) # within Rmarkdown chunk # cat(latex_string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.