optimal_cuts | R Documentation |
Choose the best out of several cut lenghts
optimal_cuts(vec, possibilities)
vec |
the vector you want to cut into pieces |
possibilities |
the possible sizes of the slices in preferred order |
vec <- letters possibilities <- c(12,15,10) optimal_cuts(vec, possibilities) possibilities <- c(12,10,13) optimal_cuts(vec, possibilities)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.