average | R Documentation |
Compute the pointwise "average" values for dfts objects such as mean and median.
## S3 method for class 'dfts'
mean(x, na.rm = TRUE, ...)
## S3 method for class 'dfts'
median(x, na.rm = TRUE, ...)
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 |
Numeric vector
results <- mean(electricity)
results <- median(electricity)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.