View source: R/retained_calc.R
retained_calc | R Documentation |
This function calculates whether or not a student has repeated
a grade. It returns a data.frame
with the student ID and a
character vector with Y
representing they repeated the grade and
N
that they had not.
retained_calc(df, sid = "sid", grade = "grade", grade_val = 9)
df |
a data.frame containing minimally a student identifier and their grade. |
sid |
a character that indicates the name of the student id attribute in
|
grade |
a character that indicates the name of the student grade attribute in
|
grade_val |
a numeric vector that contains the value of the grade that is
being checked for retention. The default value is |
a data.frame
Jason P. Becker
x <- data.frame(sid = c(101, 101, 102, 103, 103, 103, 104),
grade = c(9, 10, 9, 9, 9, 10, 10))
retained_calc(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.