Group Generic Functions
dfts_group.Rd
Group generic methods defined for things like Math, Ops, and so forth.
Usage
# S3 method for class 'dfts'
Math(x, ...)
# S3 method for class 'dfts'
Ops(e1, e2)
# S3 method for class 'dfts'
cumsum(x)
Arguments
- x, e1, e2
A dfts object. See
dfts()
.- ...
Further arguments passed to the methods.
Examples
result <- sqrt( electricity )
result <- electricity + electricity
result1 <- electricity * electricity
cumsum(electricity)
#> t(apply(x$data, MARGIN = 1, cumsum))
#> dimension: 24 x 365
#> fparam (24): 0 0.04347826 0.08695652 0.1304348 0.173913 0.2173913 ...
#> labels (365): 2014-01-01 2014-01-02 2014-01-03 2014-01-04 2014-01-05 2014-01-06 ...
#>
#> Example data
#> [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 20.02 25.15 40.45 61.95 66.95 91.95
#> [2,] 10.34 10.34 15.47 23.97 23.97 29.10
#> [3,] 5.35 5.35 5.35 7.85 7.85 10.05
#> [4,] 5.00 5.00 5.00 5.00 5.00 5.00
#> [5,] 0.50 0.50 0.50 0.50 0.50 0.50
#> [6,] 0.00 0.00 0.00 0.00 0.00 0.00