View source: R/standardise_titles.R
standardise_titles | R Documentation |
Standardises words in a character title variable to improve readability, facilitate string matching and enable more accurate comparisons for variables in different datatsets.
standardise_titles(s)
standardize_titles(s)
s |
A string |
The function capitalises words in the strings passed to it. It trims white spaces from the start, middle and end of the strings. Removes ambiguous punctions and symbols from strings. All the strings are transformed into to ASCII character encoding. Written numbers in ordinal form are transformed into numerical form.
A capitalised, trimmed and standardised string
e <- standardise_titles("A treaty concerning things")
e==c("A Treaty Concerning Things")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.