get_player_ids_from_desc | R Documentation |
Given a sentence of data from ESPN play by play about a substituon, return the player ids of the entering and exiting player. Note that this function only works when the players have a single first and last name (e.g. Julius Randle, but not J.R. Barrett)
get_player_ids_from_desc(sen, player_data)
sen |
the text indicating the substition (e.g."Mitchell Robinson enters the game for Julius Randle") |
player_data |
a data.frame of player data, as returned by |
a length two list with names "pi_id" and "po_id" giving the msf player ids of the two players involved in the substitution
Other audit_functions:
generate_substitution_row_from_desc()
,
generate_substitution_row()
,
read_boxscore_screen_shot()
,
remove_pbp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.