clean_string.Rd
remove leading and trailing whitespace
change all characters to their lowercase representation
remove all punctuation and numbers
transforming all special characters (ä, ß, ...) to 1) de-ASCII and 2) Latin-ASCII (see stri_trans_list()
)
clean_string(data, col)
dataframe
string; column name to clean
df <- data.frame(name = "Fritz Müller-Scherz 2")
clean_string(df, "name")
#> name
#> 1 fritz muellerscherz