View source: R/cleaning_names.R
remap_player_info | R Documentation |
An experimental function to replace remap_player_names
as a more comprehensive remapping of player attributes.
remap_player_info(x, remap)
x |
datavolley: a datavolley object as returned by |
remap |
data.frame: data.frame of strings with columns team, name_from, and any of player_id, firstname, and lastname |
A datavolley object or list with corresponding player names changed
## Not run:
x <- dv_read(dv_example_file(), insert_technical_timeouts = FALSE)
x <- remap_player_info(x, data.frame(team = c("Nova KBM Branik", "BraslovĨe"),
name_from = c("ELA PINTAR", "KATJA MIHALINEC"),
firstname = c("Ela", "Katja"), stringsAsFactors = FALSE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.