powered by
Split a list with size n into groups with at least m elements
splitgrp(n, m)
an integer indicating the total length
the min group size
# NOT RUN { splitgrp(1, 2) splitgrp(2, 2) splitgrp(3, 2) # }
Run the code above in your browser using DataLab