Skip to contents

Number of seasons for a periodic object.

Arguments

object

an object for which the notion of number of seasons makes sense.

Details

nSeasons is a generic function. This page gives its methods defined in package "pcts".

Value

an integer number

Author

Georgi N. Boshnakov

Methods

signature(object = "DayWeekCycle")

signature(object = "FiveDayWeekCycle")

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")

See also

allSeasons for other functions related to the seasonality of an object;

nCycles for related functions

Examples

ap <- pcts(AirPassengers)
nSeasons(ap) # 12
#> [1] 12

pcfr <- pcts(dataFranses1996)
nSeasons(pcfr) # 4
#> [1] 4