replicate_rows: Function to replicate rows in a data frame.

View source: R/replicate_rows.R

replicate_rowsR Documentation

Function to replicate rows in a data frame.

Description

Function to replicate rows in a data frame.

Usage

replicate_rows(df, n, reset = TRUE)

Arguments

df

Data frame to be replicated.

n

Number of times each row is to be replicated.

reset

Should row names be reset? Default is TRUE.

Author(s)

Stuart K. Grange

Examples

## Not run: 

data_replicated <- replicate_rows(data_test, 10)


## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.