Learn R Programming

soccermatics (version 0.9.5)

soccerShortenName: Extract player surname

Description

Helper function to extract last name (including common nobiliary particles) from full player names

Usage

soccerShortenName(names)

Arguments

names

vector of strings containing full player name

Examples

Run this code
# NOT RUN {
data(statsbomb)
statsbomb$name <- soccerShortenName(statsbomb$player.name)

# }

Run the code above in your browser using DataLab