powered by
simple Helper-Function to add n rows to a data.frame.
addRows(df, n, values = NA)
A data.frame
Dataframe object
Number of rows to add
Values to be used in the new rows. DEFAULT: NA
Berry Boessenkool, berry-b@gmx.de, Jan 2014
insertRows, sortDF, data.frame, matrix, rbind
insertRows
sortDF
data.frame
matrix
rbind
MYDF <- data.frame(A=5:3, B=2:4) addRows(MYDF, 3)
Run the code above in your browser using DataLab