cleanUpNames: Clean Up Player Names For Merging.

View source: R/cleanUpNames.R

cleanUpNamesR Documentation

Clean Up Player Names For Merging.

Description

Cleans up names of players for merging.

Usage

cleanUpNames(name)

Arguments

name

character vector of player names.

Details

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.

Value

Vector of cleaned player names.

Examples

oldNames <- c("Peyton Manning","Tom Brady","Marvin Harrison Jr.")
cleanNames <- cleanUpNames(oldNames)
cleanNames

petersenlab documentation built on April 4, 2025, 12:22 a.m.