insertRow | R Documentation |
Insert a new row into a matrix.
insertRow( m, r, v = NA, rName = "" )
m |
matrix. |
r |
row number where the new row should be inserted. |
v |
optional values for the new row. |
rName |
optional character string: the name of the new row. |
a matrix with one more row than the provided matrix m
.
Arne Henningsen
insertCol
.
m <- matrix( 1:4, 2 )
insertRow( m, 2, 5:6 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.