Description Usage Arguments Examples
Construct a lower triangular matrix from a vector
1 2 3 4 |
data |
A numeric vector. |
nrow |
A positive integer; the desired number of rows. |
ncol |
A positive integer; the desired number of rows. |
diag |
A logical; should the diagonal be included ? |
1 2 | lower_tri_matrix(1:3, 3, 3)
lower_tri_matrix(1:6, 3, 3, diag = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.