| shuffle_data | R Documentation |
Given a dataframe with columns ABCD and an even number of rows, shuffle and duplicate the columns to produce (e.g.) AAACCCBBBDDD and shuffle the rows from 1234 to 1324.
shuffle_data(df, each = 3)
df |
(dataframe) The dataframe to shuffle. |
each |
(integer) How many times to repeat each column. |
The shuffled/duplicated dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.