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