New main function: partition() - used for creating balanced partitions by partition sizes
New method category: l_ methods - n is passed as a list
New method: ‘l_sizes’ - Uses list of group sizes to create grouping factor. Can be used for partitioning (e.g. n = c(0.2, 0.3) returns 3 groups with 0.2 (20%), 0.3 (30%) and the exceeding 0.5 (50%) of the data points)
New method: ‘l_starts’ - Uses list of start positions to create groups. Define which values from a vector to start a new group at. Skip to later appearances of a value. Use n = ‘auto’ to automatically find starts using find_starts()
New helper tool: ‘find_starts’ - Finds start positions in a vector. I.e. values that differ from the previous value. Get the values or indices of the values. Output can be used as n in ‘l_starts’ method.
New helper tool: ‘find_missing_starts’ - Returns the start posititions that would be recursively removed when using the ‘l_starts’ with remove_missing_starts set to TRUE.
Added argument ‘remove_missing_starts’ to grouping functions. Recursively remove the starting positions not found with ‘l_starts’ method.
New method: ‘primes’ - similar to ‘staircase’ but with primes as steps (e.g. group sizes 2,3,5,7..)
New remainder tool: ‘%primes%’ - similar to %staircase% but for the new primes method
Submitted package to CRAN
Main functions and tools of this version is group_factor(), group(), splt(), fold(), and %staircase%