Skip to contents

This function takes an input string and normalizes it by removing spaces, accents, diacritics, and special characters. It then converts the string to lowercase.

Usage

utils_normalize_string(input_string)

Arguments

input_string

The input string to be normalized.

Value

The normalized string with spaces, accents, and special characters removed, and in lowercase.

Examples

original_string <- "Thïs is à sâmplè strîng with spèciál chàracters!"
normalized_string <- utils_normalize_string(original_string)
cat(normalized_string)  # "thisisasamplestringwithspecialcharacters"
#> thisisasamplestringwithspecialcharacters