duplicate_rows: Duplicate rows and insert them into the dataframe in order or...

View source: R/duplicate_rows.R

duplicate_rowsR Documentation

Duplicate rows and insert them into the dataframe in order or at random

Description

Duplicate rows and insert them into the dataframe in order or at random

Usage

duplicate_rows(data, messiness = 0.1, shuffle = FALSE)

Arguments

data

input dataframe

messiness

Percentage of rows to duplicate. Must be between 0 and 1. Default 0.1.

shuffle

Insert duplicated data underneath original data or insert randomly

Value

A dataframe with duplicated rows inserted

Author(s)

Philip Leftwich

Examples

duplicate_rows(mtcars, messiness = 0.1)

messy documentation built on April 3, 2025, 6:16 p.m.