write_mat: Write matrix

Description Usage Arguments Value

View source: R/matrix_stuff.R

Description

Writes a matrix in Rmd that looks nice. NOTE: use r results = 'asis' to get both LaTeX and HTML output.

Usage

1
write_mat(mat, begin = "\\left[", end = "\\right]")

Arguments

mat

The matrix to print

begin

What symbol to begin the matrix with

end

What symbol to end the matrix with

Value

A printed LaTeX/HTML matrix


atchley-sha/R-packageSHA documentation built on Dec. 19, 2021, 5:40 a.m.