as_character_matrix: Get matrix as character matrix

View source: R/lin_alg.R

as_character_matrixR Documentation

Get matrix as character matrix

Description

Get matrix as character matrix

Usage

as_character_matrix(x)

Arguments

x

caracas symbol

Examples

if (has_sympy()) {
  s  <- as_sym("[[r1, r2, r3], [u1, u2, u3]]")
  s2 <- apply(as_character_matrix(s), 2, function(x) (paste("1/(", x, ")")))
  as_sym(s2)
}


caracas documentation built on June 22, 2024, 10:59 a.m.