nCycles | R Documentation |
Basic information about periodic periodic time series objects.
nCycles(x, ...)
nTicks(x)
nVariables(x, ...)
nSeasons(object)
x,object |
an object from a periodic time series class. |
... |
further arguments for methods. |
nTicks
gives the number of time points, i.e. number of rows in
the matrix representation.
nVariables
gives the number of variables in the time series.
nSeasons
gives the number of seasons of time series and other
periodic objects.
nCycles
gives the number of cycles available in the data,
e.g. number of years for monthly data. It always gives an integer
number. Currently, if the result is not an integer an error is
raised. TODO: There is a case to round up or give the number of full
cycles available but this seems somewhat dangerous if done quietly. A
good alternative is to provide argument for control of this.
There are further functions to get or set the names of the units of
season and the seasons, see allSeasons
.
an integer number
Georgi N. Boshnakov
allSeasons
, "nSeasons-methods"
ap <- pcts(AirPassengers)
nVariables(ap)
nTicks(ap)
nCycles(ap)
nSeasons(ap)
monthplot(ap)
boxplot(ap)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.