R/utils.R
clean_description.Rd
Cleaning categorical variable descriptions before presenting.
clean_description(x)
(character) vector with categories descriptions.
character
a string
clean_description("Level A (other text)") #> [1] "Level A" clean_description("A long string that should be shortened") #> [1] "A long string tha..."