redistributeValues: Redistribute values

Description Usage Arguments

Description

Allows for the redistribution of values from one variable to a set of others based on the averages. For example, the function can be used to redistribute total field goals to field goals per distances based of what the average values are for each of the field goals per distance.

Usage

1
2
3
redistributeValues(valueTable = data.table(), calcType = "weighted",
  fromVar = "fg", toVars = c("fg0019", "fg2029", "fg3039", "fg4049",
  "fg50"), excludeAnalyst = 20)

Arguments

valueTable

A data.table. Assumes outout from the getMeltedData function.

calcType

A string specifying which calculation method to use for the average values

fromVar

A string specifying the name of the variable to distribute from

toVars

A character vector with the names of variables to distribute to

excludeAnalyst

An integer indicating an analyst to exclude. This will exclude the analyst from the averages


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