Description Usage Arguments Details Value Author(s) Examples
shuffle a dataset
| 1 | 
| data | a data frame | 
| seed | a random seed to fix the shuffling - optional | 
Takes a dataset and randomly orders the rows. Good to make sure there's no row-dependence before partitioning.
Returns the dataframe, shuffled.
Matt Simmons mattsimmons@email.com
| 1 2 | df <- data.frame(x = 1:100, y = 101:200)
shuffled_df <- shuffle(df)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.