Description Usage Arguments Examples
View source: R/shuffle_with_blocks.R
The resulting order preserves the original order, but shuffles (a) equal numeric entries (11, 11, 11) among each other and (b) shuffles equal letter entries ('A', 'A', 'B', 'B') in blocks so that the order within the letter is preserved, but the letters are randomly ordered.
1 | shuffleWithBlocks(desired_order)
|
desired_order |
alphanumeric vector consisting of natural numbers and letters |
1 2 | desired_order = c(1,2,3,4,5,'A','A','B','B',10,11,11,11,11,15,16,17)
shuffleWithBlocks(desired_order)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.