str_to_id function

String to 'id' format

String to 'id' format

Turn a string to id format used in treemaps.

str_to_id(x) str_to_id_vec(x)

Arguments

  • x: A vector string.

Examples

str_to_id(" A string _ with sd / sdg Underscores \ ")