powered by
Performs a random partition of the indices that refer to a given data set (data frame or matrix)
do.random.partition(n.ex, n.partitions, seed = 0)
number of indices to be partitioned
number of partitions
seed for the random generator
a list with n.partitions elements. Each element stores the indices of the partition.
n.partitions
The partition of the data is performed using only the indices of the data not the data itself
# NOT RUN { do.random.partition(100, 10) # }
Run the code above in your browser using DataLab