avgValue: Calculate average based on selected method

Description Usage Arguments

Description

Will calculate average of provided data and weights based on the selected method

Usage

1
2
avgValue(calcMethod = "weighted", dataValue = as.numeric(),
  dataWeights = as.numeric(), na.rm = FALSE)

Arguments

calcMethod

One of c("average", "weighted", "robust")

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.


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