powered by
Partitions a vector x into n groups of roughly equal size.
partition(x, n)
Vector to partition.
Number of (roughly) equally-sized groups
A list of partitions of the vector x.
# NOT RUN { x <- 1:10 partition( x, 3 ) # }
Run the code above in your browser using DataLab