cleanname: cleanname tidies a vector of names by removing commas and...

View source: R/candidate_functions.r

cleannameR Documentation

cleanname tidies a vector of names by removing commas and spaces

Description

cleanname tides character strings in an input vector by removing commas, apostrophes, and spaces.

Usage

cleanname(invect, removeNA = TRUE)

Arguments

invect

the vector of character strings to be tidied.

removeNA

a boolean determining whether NA values are replaced with 'unknown'

Value

a vector the same length as was input

Examples

x <- c("John Smith", "Port of Hobart","An example, and another")
cleanname(x)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.