powered by
Construct a lower triangular matrix from a vector
lower_tri_matrix(data, nrow = 1, ncol = 1, diag = FALSE)# S4 method for dual lower_tri_matrix(data, nrow = 1, ncol = 1, diag = FALSE)
# S4 method for dual lower_tri_matrix(data, nrow = 1, ncol = 1, diag = FALSE)
A numeric vector.
A positive integer; the desired number of rows.
A logical; should the diagonal be included ?
# NOT RUN { lower_tri_matrix(1:3, 3, 3) lower_tri_matrix(1:6, 3, 3, diag = TRUE) # }
Run the code above in your browser using DataLab