powered by
Cleaning categorical variable descriptions before presenting.
clean_description(x)
a string
(character) vector with categories descriptions.
character
clean_description("Level A (other text)") clean_description("A long string that should be shortened")
Run the code above in your browser using DataLab