if (FALSE) {
roster = readr::read_csv(system.file("roster.csv", package = "ghclass"))
# Teams of 4 across the whole roster -> "team01", "team02", ...
team_roster(roster, size = 4)
# Teams of 4 within each lab section, group folded into the default name
team_roster(roster, size = 4, by = "section", seed = 20250901)
# Custom name template (used exactly as written)
team_roster(
roster, size = 4, by = "section",
name = "hw1_lab{section}_team{team_id}", seed = 20250901
)
}
Run the code above in your browser using DataLab