score_rollup | R Documentation |
Classifies a numeric sequence of scores into a sequence of classes of scores.
score_rollup(x, x.min = NULL, x.max = NULL,
direction = c("forward", "backward"),
extremes = c(FALSE, FALSE))
x |
Numeric vector sorted in ascending or descending order. |
x.min |
Theoretical minimum of |
x.max |
Theoretical minimum of |
direction |
Specify if the classification of scores must be performed in
ascending ( |
extremes |
Should a value be assigned to extreme scores?. The argument can include two logical values, the first one refferring to the lower extreme, the second one referring to the upper extreme. If just one value is provided, it will be used for both extremes. |
Missed scores must be coded by using an empty string.
Davide Massidda davide.massidda@gmail.com
score_implode
, score_explode
x <- c(1,9,12,12,13,14,15,15,17,18,19,19,19,20,21,22,23,24)
xf <- score_rollup(x,x.min=0,x.max=24,direction="forward")
xb <- score_rollup(x,x.min=0,x.max=24,direction="backward")
data.frame(x,xf,xb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.