Description Usage Arguments Details Value Examples
This function changes column names of batting and pitching data downloaded from PIA. It also changes some of the labels, and removes rows where player did not record a plate appearance. Finally, it ensures that player played in levels for which we have MLEs.
1 |
minors |
is a data.frame with the statistics from the minors that have been download from PIA. |
okay_levels |
the levels for which we wish to calculate MLEs. Any observations which aren't at these levels are removed. Defaults to c("High_A", "AA", "AAA", "MLB"). |
minors |
is a data.frame with the statistics from the minors that have been download from PIA. |
Changes column names, names of levels, and name of Florida organization to make typing easier. For example, "Level.of.Play.Name.Abbrev" is changed to "Level." Then removes any rows where the batter recorded 0 PA or the pitcher has 0 batters faced.
tbl_df
of cleaned statistics
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.