average: Average Functions for dfts Objects
Description
Compute the pointwise "average" values for dfts objects such as mean and
median.
Usage
# S3 method for dfts
mean(x, na.rm = TRUE, ...)# S3 method for dfts
median(x, na.rm = TRUE, ...)
Arguments
- x
A dfts object or data which can be automatically converted to that
format. See dfts()
.
- na.rm
Boolean if NA values should be removed. Defaults to TRUE.
- ...
Additional parameters to pass to base R's min
or max
functions. They are only used in the type='fparam'
case.
Examples
Run this coderesults <- mean(electricity)
results <- median(electricity)
Run the code above in your browser using DataLab