View source: R/pedalfast_factor.R
fss_as_factor | R Documentation |
Mapping FSS Total scores (integer values) to categorical values.
fss_as_factor(x, long_label = FALSE, ...)
x |
an integer vector |
long_label |
logical if the score range should be prepended to the label. |
... |
not currently used. |
FSS scores are integer values from 6 to 30.
The a mapping of ranges of integer values to categories is
FSS 6, 7: Good
FSS 8, 9: Mildly abnormal
FSS 10, 11, 12, 13, 14, 15: Moderately abnormal
FSS 16, 17, 18, 19, 20, 21: Severe abnormal
FSS 22, 23, 24, 25, 26, 27, 28, 29, 30: Very severely abnormal
A factor of equal length to the input x
with labels for the
categorical ranges of FSS.
x <- seq(5, 32)
data.frame(x = x,
short_label = fss_as_factor(x),
long_label = fss_as_factor(x, long_label = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.