add element in 5th row in matrix in r language code example Example: add row to matrix r MatrixB <- rbind(MatrixA, c(10,11,12))