powered by
Cleans up names of players for merging.
cleanUpNames(name)
Vector of cleaned player names.
character vector of player names.
Cleans up names of NFL Football players, including making them all-caps, removing common suffixes, punctuation, spaces, etc. This is helpful for merging multiple datasets.
oldNames <- c("Peyton Manning","Tom Brady","Marvin Harrison Jr.") cleanNames <- cleanUpNames(oldNames) cleanNames
Run the code above in your browser using DataLab