Convert HoNOS severity scores to labelled factor

as_severity_desc(x, na_level = NULL)

Arguments

x

Vector of severity rating from 0 to 4

na_level

String, specifying label for missing values.

Value

Labelled "factor"

Examples

x <- 0:4 as_severity_desc(x)
#> [1] No problem Minor problem #> [3] Mild problem Moderately severe problem #> [5] Severe to very severe problem #> 5 Levels: No problem Minor problem Mild problem ... Severe to very severe problem