Will calculate average of provided data and weights based on the selected method
1 2 | avgValue(calcMethod = "weighted", dataValue = as.numeric(),
dataWeights = as.numeric(), na.rm = FALSE)
|
calcMethod |
One of |
dataValue |
A numeric vector of values to average base on chosen calculation method. |
dataWeights |
A numeric vector of weight values associated with the dataValue parameter. |
na.rm |
A logical value determining if NA values should be removed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.