powered by
insert.row(.data, newrow, where = 1)
existingDF <- as.data.frame(matrix(seq(20),nrow=5,ncol=4)) existingDF r <- 3 newrow <- seq(4) insert.row(existingDF, newrow, r)
Run the code above in your browser using DataLab