addRows | R Documentation |
simple Helper-Function to add n rows to a data.frame.
addRows(df, n, values = NA)
df |
Dataframe object |
n |
Number of rows to add |
values |
Values to be used in the new rows. DEFAULT: NA |
A data.frame
Berry Boessenkool, berry-b@gmx.de, Jan 2014
insertRows
, sortDF
,
data.frame
, matrix
, rbind
MYDF <- data.frame(A=5:3, B=2:4)
addRows(MYDF, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.