From 9a00896795b41cbf9aad181be779a58d80195a38 Mon Sep 17 00:00:00 2001 From: Michael Friendly Date: Thu, 25 Jul 2024 16:44:14 -0400 Subject: [PATCH] doc symm_matrix --- dev/symb-matrix.R | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dev/symb-matrix.R b/dev/symb-matrix.R index c4b279c3..bb12f43a 100644 --- a/dev/symb-matrix.R +++ b/dev/symb-matrix.R @@ -8,10 +8,18 @@ #' x_{n1} & x_{n2} & \\dots & x_{nm} #' \end{pmatrix} #' -#' @param symbol -#' @param rows -#' @param cols -#' @param brackets +#' @details +#' This so far assumes that the \code{amsmath} package will be available. +#' +#' +#' @param symbol A single character, the name of the matrix elements +#' @param rows Number of rows. +#' @param cols Number of columns +#' @param brackets Type of brackets: \code{"p"} uses parentheses "(", ")"; \code{"b"} uses square braqckets "[", "]"; ... +#' +#' @examples +#' symb_matrix("x", rows = "n", cols = "m", brackets = "p) # default +#' symb_matrix("\\beta", "p", "q") #' symb_matrix <- function(