Description Usage Arguments Details Note Examples
This function determines and returns the group of players who are considered to be replacement-level players.
1 2 3 4 5 6 7 | getReplacementPlayers(data, nteams = 30, ...)
## S3 method for class 'openWARPlayers'
getReplacementPlayers(data, nteams = 30, ...)
## S3 method for class 'openWARPlays'
getReplacementPlayers(data, nteams = 30, ...)
|
data |
An object of class |
nteams |
the number of teams used to calculate the number of non-replacement players. The default is 30 since that is the number of MLB teams. (Note: Using 27.5 seems to result in a total WAR that is close to 1000.) |
... |
currently ignored |
In the openWAR framework, we first define a specific number of players to be considered 'true' major league talent. This function returns the group of players who do not appear in the group of 'true' major league talent. The performances of the players in this group are used to estimate the value of a replacement-level player for use in converting runs above average (RAA) into runs above replacement (RAR) and ultimately wins above replacement (WAR).
This function is used internally in the function getWAR
1 2 3 | players = getWAR(MayProcessed$openWAR)
summary(players)
replacementIds = getReplacementPlayers(players)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.