Description Usage Arguments Value
Applies scoring rules to the player statistics. Default values are set to the standard scoring values.
1 2 | ScorePassing(x, PassingYds = c(25, 1), PassingTD = 4,
PassingInterception = -1, FumbleLost = -2)
|
x |
dataframe of player statistics data. Should be of the format produced by the GetStats() function. |
PassingYds |
Vector with the yardage increment and point value. As an example, a player is awarded 1 point for every 25 yards, then the score rule is of the format c(25,1) |
PassingTD |
Points awarded for passing touchdowns |
PassingInterception |
Points awarded for interceptions thrown. Use a negative value if points are lost for interceptions. |
FumbleLost |
Points awarded for each fumble lost. Since this function is for offensive stats, a fumble lost would occur when the defense recovers the fumble. |
1 by nrow(x) matrix with the total score for each row
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.