powered by
Insert a new row into a matrix.
insertRow( m, r, v = NA, rName = "" )
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.
a matrix with one more row than the provided matrix m.
m
insertCol.
insertCol
# NOT RUN { m <- matrix( 1:4, 2 ) insertRow( m, 2, 5:6 ) # }
Run the code above in your browser using DataLab