ScoreRushing: Score the rushing stats

Description Usage Arguments Value

Description

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

Usage

1
ScoreRushing(x, RushingYds = c(10, 1), RushingTD = 6, FumbleLost = -2)

Arguments

x

dataframe of player statistics data. Should be of the format produced by the GetStats() function.

RushingYds

Vector with the yardage increment and point value. As an example, a player is awarded 1 point for every 10 yards, then the score rule is of the format c(10,1)

RushingTD

Points awarded for rushing touchdowns

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.