fetch_groups: Fetch group memberships

Description Usage Arguments Value

Description

Returns a list of groups to which users belong in a course.

Usage

1
2
fetch_groups(course_id, user_ids, shape = "wide", ...,
  con = get_session_con())

Arguments

course_id

A single integer corresponding to a courseid in the database.

user_ids

A vector of integers corresponding to userids enrolled in the course specified above.

shape

A single string specifying what shape the returned data should have. "wide" output has one row per input userid and a column for each possible group. "long" output has one row per group assignment and multiple columns of information.

...

Potential future args.

con

A database connection object, using the session connection by default.

Value

A tibble with group assignment information. Format depends on shape parameter.


TheFridayInstitute/fimoodler documentation built on May 28, 2019, 9:37 a.m.