groupassign | R Documentation |
Assign Groups and Update Interaction Matrix
groupassign(student_data, students_per_group, iterations)
student_data |
A data frame containing student identifiers. The column should be named 'Student'. |
students_per_group |
An integer specifying the number of students per group. |
iterations |
An integer defining how many rounds of group assignments should be performed. |
A matrix representing the interaction history of students, where each cell indicates the number of times two students have been grouped together.
n_students <- 4
student_data <- GenerateData(n_students)
students_per_group <- 2
iterations <- 3
matrices_df <- groupassign(student_data, students_per_group, iterations)
matrices_df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.