matrix_display: Display latex matrices

View source: R/latex.R

matrix_displayR Documentation

Display latex matrices

Description

Display latex matrices

Usage

matrix_display(x, bracket = c("[", "(", "|", ""), include_names = TRUE)

Arguments

x

a matrix

bracket

bracket around the matrix: "[" (default) for square brackets, "(" for parentheses, "|" for vertical bars (as for a determinant), or "" for none

include_names

if TRUE (default), the matrix's row and column names are displayed above and to the left of the matrix

Value

character

Examples

matrix_display(diag(2))

apa7 documentation built on Dec. 1, 2026, 5:06 p.m.