add_prefix: Add prefix to each element of matrix

View source: R/lin_alg.R

add_prefixR Documentation

Add prefix to each element of matrix

Description

Add prefix to each element of matrix

Usage

add_prefix(x, prefix = "")

Arguments

x

Numeric or symbolic matrix

prefix

A character vector

Examples

if (has_sympy()) {
  X <- matrix_sym(2, 3)
  X
  add_prefix(X, "e")
  
  X <- matrix(1:6, 3, 2)
  X
  add_prefix(X, "e")
}


caracas documentation built on Oct. 17, 2023, 5:08 p.m.