addRows {berryFunctions}R Documentation

Add n rows to a data.frame

Description

simple Helper-Function to add n rows to a data.frame.

Usage

addRows(df, n, values = NA)

Arguments

df

Dataframe object

n

Number of rows to add

values

Values to be used in the new rows. DEFAULT: NA

Value

A data.frame

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jan 2014

See Also

insertRows, sortDF, data.frame, matrix, rbind

Examples


MYDF <- data.frame(A=5:3, B=2:4)
addRows(MYDF, 3)


[Package berryFunctions version 1.20.1 Index]