Description Usage Arguments Value Examples
Takes the Japanese data scraped from Baseball-Reference using
scrape_bref
and cleans it so that it can be combined with
the data downloaded from PIA. Only used to process data for the apps.
1 | clean_japan(dat, j_ids, type = c("bat", "pit"))
|
dat |
data.frame. Data scraped from Baseball-Reference |
j_ids |
data.frame of japanese ids for players who have played in both Japan and America. The j_ids are custom, used only in this app |
type |
character. Whether these are batting or pitching data. Defaults to batting |
tbl_df of japanese statistics that have been cleaned.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.