nSeasons-methods | R Documentation |
Number of seasons of a periodic object.
## S4 method for signature 'Cyclic'
nSeasons(object)
## same signature for all periodic classes in package "pcts"
object |
an object for which the notion of number of seasons makes sense. |
nSeasons
is a generic function. This page gives is for the
methods defined in package "pcts"
- all periodic classes have
(or inherit) a method.
an integer number
signature(object = "DayWeekCycle")
signature(object = "MonthYearCycle")
signature(object = "PeriodicIntegratedArmaSpec")
signature(object = "QuarterYearCycle")
signature(object = "PeriodicMonicFilterSpec")
signature(object = "PeriodicInterceptSpec")
signature(object = "Cyclic")
signature(object = "BareCycle")
signature(object = "OpenCloseCycle")
signature(object = "Every30MinutesCycle")
signature(object = "PartialCycle")
signature(object = "VirtualPeriodicModel")
signature(object = "SarimaFilter")
signature(object = "VirtualArmaFilter")
Georgi N. Boshnakov
allSeasons
for other functions related to the
seasonality of an object;
nCycles
for related functions
## scalar time series
ap <- pcts(AirPassengers)
nSeasons(ap) # 12
## multivariate time series
pcfr <- pcts(dataFranses1996)
nSeasons(pcfr) # 4
## five-day-week period
five_day_week <- BuiltinCycle(5)
five_day_week
nSeasons(five_day_week)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.