calculatePoints: Caluclate fantasy points

Description Usage Arguments Value

Description

Based on list of scoring rules calculate fantasy points using projection data passed in a table

Usage

1
calculatePoints(projectionData = data.table(), scoringRules = list())

Arguments

projectionData

A data.table with projected stats. Should from the getMeltedData function

scoringRules

A list of scoring rules with one element per position

Value

A data.table with up to 4 cloumns

position

The position the player is playing

playerId

The ID of the player. Get player names by merging results from getPlayerData

analyst

The ID of the analyst which projections are used as the basis for the points

points

The calculated number of fantasy points


dadrivr/ffanalytics documentation built on May 14, 2019, 3:12 p.m.