Description Usage Arguments Details Value Author(s) See Also
gpa_discretize
optimizes base R function cut
specifically for values
in *GPA
fields, e.g. GRAD_GPA
, by streamlining binning into tenths,
quarters, thirds, and halves, as well as cleaning bin labels.
1 | gpa_discretize(gpa, range = "thirds", right = FALSE)
|
gpa |
A scalar or vector of length n and class numeric containing one or more GPA values. |
range |
A single string, in quotations, indicating the range of cut
points. Possible values include |
right |
A logical value indicating if ranges should be closed on the right
and open on the left ( |
Values passed to argument gpa =
which exceed 4.33 are coerced to
NA
(missing) values and a warning message is thrown.
A scalar or vector of clean character strings, according to the
parameter passed to argument range =
, comprised of the lower and upper
bounds in which the value passed to gpa =
falls. Missing values are preserved.
Jamison R. Crawford, Institutional Research Associate, Georgia State University
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.