crsra_membershares {crsra}R Documentation

The share of learners in each course based on specific characteristics.

Description

The share of learners in each course based on specific characteristics.

Usage

crsra_membershares(all_tables, groupby = c("roles", "country", "language",
  "gender", "empstatus", "education", "stustatus"), remove_missing = TRUE)

Arguments

all_tables

A list from crsra_import_course or crsra_import

groupby

A character string indicating the how to break down learners in each course. The default is set to roles and returns the share of students in each category such as Learner, Not Enrolled, Pre-Enrolled Learner, Mentor, Browser, and Instructor. Other values are country (for grouping based on country), language (for grouping based on language), gender (for grouping by gender), education (for grouping by education level), stustatus (for grouping by student status), empstatus (for grouping by employment status), and country (for grouping by country). Note that this grouping uses the entries in the table users that is not fully populated so by grouping you lose some observations.

remove_missing

Should the NA be removed from the groupby column?

Value

A table which indicates the total number and the share of students in each group for each course

Examples

crsra_membershares(
example_course_import,
groupby = "country")
crsra_membershares(
example_course_import,
groupby = "roles", remove_missing = FALSE)
crsra_membershares(
example_course_import,
groupby = "roles", remove_missing = TRUE)

[Package crsra version 0.2.3 Index]