powered by
Assign every student into groups with set number of students per group, with set number of iterations (overlap not considered)
MakeGroups(data, students_per_group, iterations, initial_matrix)
data frame
a data frame
a positive integer
matrix generated with `initmat()`
# Assign 9 students into 3 groups of 3, with 3 iterations data <- GenerateData(9) M <- initmat(data$Student) MakeGroups(data, 3, 3, M)
Run the code above in your browser using DataLab