Convert HoNOS item 8 types to labelled factor

as_i8_desc(x)

Arguments

x

Vector of strings

Value

Labelled "factor"

Examples

x <- c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J") as_i8_desc(x)
#> [1] Type A: Phobic Type B: Anxiety #> [3] Type C: Obsessive-compulsive Type D: Mental strain / tension #> [5] Type E: Dissociative Type F: Somatoform #> [7] Type G: Eating Type H: Sleep #> [9] Type I: Sexual Type J: Other, specify #> 10 Levels: Type A: Phobic Type B: Anxiety ... Type J: Other, specify