addRows: Add n rows to a data.frame

View source: R/addRows.R

addRowsR 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)


berryFunctions documentation built on May 29, 2024, 4:01 a.m.