bmatrix | R Documentation |
The specified matrix is converted to a bmatrix in Rmarkdown
bmatrix(
pmat,
ps_name = NULL,
ps_equal_sign = "=",
ps_env = NULL,
ps_out_format = "html"
)
pmat |
matrix to be converted to Rmarkdown |
ps_name |
variable name for the matrix |
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 |
# —- bmatrix Wrapper —————————————————- #
String containing bmatrix representation of given matrix
## Not run:
eye3 <- diag(1, nrow = 3)
bmatrix(pmat = eye3, ps_name = 'I', ps_env = '$$')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.