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