powered by
Mapping FSS Total scores (integer values) to categorical values.
fss_as_factor(x, long_label = FALSE, ...)
A factor of equal length to the input x with labels for the categorical ranges of FSS.
x
an integer vector
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
x <- seq(5, 32) data.frame(x = x, short_label = fss_as_factor(x), long_label = fss_as_factor(x, long_label = TRUE))
Run the code above in your browser using DataLab