rmPWCap | R Documentation |
Sterilises strings, capitalising, removing punct. and spaces. Mostly for matching applications
rmPWCap(text_to_clean, rm_all_white_space = F)
text_to_clean |
A character vector. |
rm_all_white_space |
A boolean indicating whether all (not just trailing and double whitespace) should be stripped. Setting to false obviously preserves semantic meaning, but in eaither instance peripherial and sequential white space is always stripped. |
A character vector x
capitalised and devoid of Punctuation and trailing, double
(and, optionally all whitespace)
rmPWCap(c('He1l0 ! WoR1D')) rmPWCap(c('He1l0 ! WoR1D'),rm_all_white_space=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.