Alternative (and possibly faster) retention calculation.
1 2 3 4 | retention2(students, graduates, months = c(15, 24, 36, 48, 72, 96),
warehouseDateColumn = "CREATED_DATE", gradColumn = "START_DATE",
studentIdColumn = "CONTACT_ID_SEQ", degreeColumn = "DEGREE_CODE",
persistColumn = "Persist")
|
students |
a data frame of enrolled students. This data frame should be structured like a warehouse data where a student is represented for each cohort (i.e. warehouseDateColumn) in which they are enrolled. |
warehouseDateColumn |
the name of the column corresponding to the warehouse date, or cohort. Each unique date will thereby define a cohort. |
gradColumn |
the name of the column in the |
studentIdColumn |
the name of the column corresponding the student's id. |
degreeColumn |
(optional) the name of the column corresponding to the degree the
student is enrolled in (within students) or graduated (within graduates).
If omitted, then |
persistColumn |
(optional) the name of the column correspondinng to
whether the student is persisting within that month or not. If omitted,
the |
graduates |
a data frame of graduates, or degrees earned. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.