bcolumn_vector: Convert Column Vector To bmatrix in Rmarkdown

View source: R/rmd_vec_mat.R

bcolumn_vectorR Documentation

Convert Column Vector To bmatrix in Rmarkdown

Description

The specified column vector is converted to a bmatrix in Rmarkdown

Usage

bcolumn_vector(
  pvec,
  ps_name = NULL,
  ps_equal_sign = "=",
  ps_env = NULL,
  ps_out_format = "html"
)

Arguments

pvec

vector to be converted to Rmarkdown

ps_name

variable name for the vector

ps_equal_sign

equal sign to be used when a variable name is given

ps_env

math environment in which matrix should be presented

ps_out_format

output format produced

Details

# —- bcolumn_vector Wrapper ——————————————— #

Value

String containing bmatrix representation of given vector

Examples

## Not run: 
example_vec <- c(1:5)
bcolumn_vector(pvec = example_vec, ps_name = 'v', ps_env = '$$')

## End(Not run)


charlotte-ngs/rmdhelp documentation built on Oct. 31, 2023, 10:21 a.m.