raw2gp | R Documentation |
Scale raw grades to gp scores
raw2gp(x, breaks, values = c(4.5, 3.5, 2.5, 1.5, 0.5,
0)[1:length(breaks)])
x |
raw scores to recode |
breaks |
vector of break points between benchmarks |
values |
vector of values to convert break points to. Interpolation is used for other values. |
Both 'breaks' and 'values' are sorted into decreasing order before matching them up. If the lengths of 'breaks' and 'values' differ, the longer is truncated to make them equal length.
x <- c(50, 63, 78, 91, 54, 17)
raw2gp(x, breaks = seq(50, 100, by = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.