Hi, an example would be better, but this is the general way to insert a row in base R to a data frame:
df <- data.frame(A = c(1,2), B = c(3,4))
df[nrow(df) + 1, ] <- c(5,6)
There is a way (with a similarly named function) from the library miscTools to insert a row in a matrix:
m <- matrix(c(1,2), c(2,2), 2)
m <- miscTools::insertRow(m, 3, c(3,3))
Hope it helps