powered by
Helper function to extract last name (including common nobiliary particles) from full player names
soccerShortenName(names)
vector of strings containing full player name
# NOT RUN { data(statsbomb) statsbomb$name <- soccerShortenName(statsbomb$player.name) # }
Run the code above in your browser using DataLab