average {fChange} | R Documentation |
Average Functions for dfts Objects
Description
Compute the pointwise "average" values for dfts objects such as mean and median.
Usage
## S3 method for class 'dfts'
mean(x, na.rm = TRUE, ...)
## S3 method for class 'dfts'
median(x, na.rm = TRUE, ...)
Arguments
x |
A dfts object or data which can be automatically converted to that
format. See |
na.rm |
Boolean if NA values should be removed. Defaults to TRUE. |
... |
Additional parameters to pass to base R's |
Value
Numeric vector
Examples
results <- mean(electricity)
results <- median(electricity)
[Package fChange version 2.1.0 Index]