View source: R/matrix_to_latex.R
matrix_to_latex | R Documentation |
Function returns a Latex formatted matrix for Rmarkdown documents.
Create the Latex string by calling the function:
A_matrix_str = matrix_to_latex(A)
. The matrix string could then
be used directly in a Rmarkdown document, surrounding latex "$" signs included.
matrix_to_latex( x = NULL, bracket_type = "bracket", small_inline = FALSE, fractions = FALSE, digits = 2, matrix_name = NULL, centered = FALSE )
x |
A numeric/character vector, matrix, data frame. |
bracket_type |
A string that set the bracket type. Acceptable values are "none", "bracket", "paren", "curly_bracket", "verts", "double_verts". |
small_inline |
A logical which if |
fractions |
A logical which if |
digits |
The number of rounded digits for the numeric values. |
matrix_name |
A string that sets the name of the matrix. |
centered |
A logical which if |
A string of inline Rmarkdown
Rick Dean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.