powered by
Insert a new row into a matrix.
insertRow( m, r, v = NA, rName = "" )
a matrix with one more row than the provided matrix m.
m
matrix.
row number where the new row should be inserted.
optional values for the new row.
optional character string: the name of the new row.
Arne Henningsen
insertCol.
insertCol
m <- matrix( 1:4, 2 ) insertRow( m, 2, 5:6 )
Run the code above in your browser using DataLab