View source: R/candidate_functions.r
cleanname | R Documentation |
cleanname tides character strings in an input vector by removing commas, apostrophes, and spaces.
cleanname(invect, removeNA = TRUE)
invect |
the vector of character strings to be tidied. |
removeNA |
a boolean determining whether NA values are replaced with 'unknown' |
a vector the same length as was input
x <- c("John Smith", "Port of Hobart","An example, and another")
cleanname(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.