groupassign: Assign Groups and Update Interaction Matrix

View source: R/groupassign.R

groupassignR Documentation

Assign Groups and Update Interaction Matrix

Description

Assign Groups and Update Interaction Matrix

Usage

groupassign(student_data, students_per_group, iterations)

Arguments

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.

Value

A matrix representing the interaction history of students, where each cell indicates the number of times two students have been grouped together.

Examples

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

golfr documentation built on April 12, 2025, 1:48 a.m.

Related to groupassign in golfr...