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.
1 2 3 | redistributeValues(valueTable = data.table(), calcType = "weighted",
fromVar = "fg", toVars = c("fg0019", "fg2029", "fg3039", "fg4049",
"fg50"), excludeAnalyst = 20)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.