Description Usage Arguments Value Examples
Generic function to insert a row into a matrix.
1 | insert_row(mat, row_num, vec)
|
mat |
matrix into which row should be inserted |
row_num |
row number for insertion; row currently at that number is pushed down. |
vec |
vector to be inserted |
matrix with the inserted row.
1 2 | x <- matrix(1:9, nrow = 3)
insert_row(x, 2, c(5, 27, 87))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.