assignBlocks | R Documentation |
Each set has size set_size (internally optimized using correctSetSize
), holding values from 'values'.
This gives n such sets and the return value is just the set index for each value.
assignBlocks(values, set_size = 5, sort_values = TRUE)
values |
Vector of values |
set_size |
Number of distinct values allowed in a set |
sort_values |
Before assigning values to sets, sort the values? |
Vector (same length as input) with set numbers
#library(PTXQC)
assignBlocks(c(1:11, 1), set_size = 3, sort_values = FALSE)
## --> 1 1 1 2 2 2 3 3 3 4 4 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.