array_to_vector_equation: Convert an R array into a LaTeX system of equations for easy...

View source: R/array_to_vector_equation.R

array_to_vector_equationR Documentation

Convert an R array into a LaTeX system of equations for easy writing in Rmarkdown

Description

Convert an R array into a LaTeX system of equations for easy writing in Rmarkdown

Usage

array_to_vector_equation(A, b)

Arguments

A

An array to convert to Latex format

b

A vector to convert to Latex format

Value

A string that can be put into an Rmarkdown document by using cat() to direct the output

Examples

latex_string <- array_to_latex(matrix(1:6, 3, 2))

# within Rmarkdown chunk
# cat(latex_string)

jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.