brow_vector: Convert Row Vector To bmatrix in Rmarkdown

View source: R/rmd_vec_mat.R

brow_vectorR Documentation

Convert Row Vector To bmatrix in Rmarkdown

Description

The specified row vector is converted to a bmatrix in Rmarkdown

Usage

brow_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

# —- brow_vector Wrapper ———————————————— #

Value

String containing bmatrix representation of given vector

Examples

## Not run: 
example_vec <- c(1:5)
brow_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.