row_rep: Repeat rows

Description Usage Arguments Value Examples

Description

Replicate the rows of a data frame n times.

Usage

1
row_rep(df, n, .id = "replicate")

Arguments

df

A data frame

n

Number of replicates to create

.id

Name of the oclumn in which to store the integer replicate ID

Value

A data frame

Examples

1
2
3
rep_iris <- row_rep(iris, 5)
names(rep_iris)
nrow(rep_iris)

mdlincoln/dateSampler documentation built on May 22, 2019, 4:05 p.m.