fss_as_factor {pedalfast.data}R Documentation

Functional Status Scale Categories

Description

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

Usage

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

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

Value

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

Examples

x <- seq(5, 32)
data.frame(x           = x,
           short_label = fss_as_factor(x),
           long_label  = fss_as_factor(x, long_label = TRUE))


[Package pedalfast.data version 1.0.1 Index]