View source: R/callingCardsFunctions.R
create_partitions | R Documentation |
There may be one more partition of size less than the equally divided parts. eg if the vector length is 14 and the desired partitions are size 3, then there will be 4 partitions of length 3 and one of length 2, 1 1 1 2 2 2 3 3 3 4 4 4 5 5.
create_partitions(vector_length, equal_parts = 100)
vector_length |
the total lenght of the partition vector |
equal_parts |
how large should each partition be? |
a vector of vector_length
divded into equal_parts
with possibly
one additional vector of size less than equal_parts
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.