Insert Row into a Matrix
insertRow(m, r, v = NA, rName = "")
(Required). a matrix.
(Required). numeric. row number where the new row should be inserted.
(optional). numeric. values for the new row.
(optional). character. the name of the new row.
a matrix with one more row than the provided matrix m.
https://github.com/cran/miscTools/
if (FALSE) {
m <- matrix(1:4, 2)
insertRow(m, 2, 5:6)
}