powered by
simple Helper-Function to add n rows to a data.frame.
addRows(df, n, values = NA)
Dataframe object
Number of rows to add
Values to be used in the new rows. DEFAULT: NA
A data.frame
insertRows, sortDF, data.frame, matrix, rbind
insertRows
sortDF
data.frame
matrix
rbind
# NOT RUN { MYDF <- data.frame(A=5:3, B=2:4) addRows(MYDF, 3) # }
Run the code above in your browser using DataLab