Learn R Programming

pedalfast.data (version 1.0.2)

fss_as_factor: Functional Status Scale Categories

Description

Mapping FSS Total scores (integer values) to categorical values.

Usage

fss_as_factor(x, long_label = FALSE, ...)

Value

A factor of equal length to the input x with labels for the categorical ranges of FSS.

Arguments

x

an integer vector

long_label

logical if the score range should be prepended to the label.

...

not currently used.

Details

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

Examples

Run this code
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