mattex: Print a matrix for LaTeX.

View source: R/tex-helpers.R

mattexR Documentation

Print a matrix for LaTeX.

Description

Print a matrix for LaTeX.

Usage

mattex(mat, type = "pmatrix", round = 3)

Arguments

mat

A matrix.

type

⁠[character(1): "pmatrix"]⁠: Matrix environment to use, e.g. bmatrix for ⁠[]⁠-enclosed (brackets) or pmatrix for ⁠()⁠ (parentheses).

round

⁠[integer(1): 3]⁠

Value

Nothing, output is cated.

Examples

mat <- matrix(1:9, ncol = 3)
mattex(mat)

jemus42/jemisc documentation built on March 24, 2024, 8:18 p.m.