ScorePassing: Score the passing statistics

Description Usage Arguments Value

Description

Applies scoring rules to the player statistics. Default values are set to the standard scoring values.

Usage

1
2
ScorePassing(x, PassingYds = c(25, 1), PassingTD = 4,
  PassingInterception = -1, FumbleLost = -2)

Arguments

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.

Value

1 by nrow(x) matrix with the total score for each row


kuhnrl30/Touchdown documentation built on May 20, 2019, 7:06 p.m.