Description Usage Arguments Value Examples
View source: R/bind_player_id.R
This function creates a player id of the data.
1 | bind_player_id(data, idlist)
|
data |
KBO data |
idlist |
The ID list contains the batter and pitcher ID list files in the player_id_list folder. |
Data with player id
1 2 3 4 5 | #notrun
#batter_id <- read.csv("./player_id_list/batter_id_list.csv",stringsAsFactors = F)
#id_2018 <- batter_id[substr(batter_id$date,1,4)==2018,]
#id_hanhwa_2018 <- id_2018[id_2018$away=="<ed><95><9c><ed><99><94>"|id_2018$home=="<ed><95><9c><ed><99><94>",]
#bind_player_id(hanhwa_batter_2018,"id_hanhwa_2018")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.