Learn R Programming

pingers (version 0.1.1)

shuffle: Shuffle dataframe rows randomely

Description

Randomly reorder the rows of a dataframe

Usage

shuffle(data)

Arguments

data

dataframe to shuffle

Value

reordered dataframe

Examples

Run this code
# NOT RUN {
{
ordered_df <- tibble::tibble(V1=1:26,V2=letters)
shuffled_df <- shuffle(ordered_df)
}
# }

Run the code above in your browser using DataLab