insertRow {micEcon} | R Documentation |
Insert Row into a Matrix.
insertRow( m, r, v = NA )
m |
Matrix. |
r |
Row number where the new Rown should be inserted. |
v |
Optional values for the new Row. |
a matrix with one more row than the provided matrix m
.
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
m <- matrix( 1:4, 2 ) insertRow( m, 2, 5:6 )