PartialCycle-class | R Documentation |
Class PartialCycle
Objects can be created by calls of the form new("PartialCycle", ...)
.
Partial cycles are often created implicitly when subsetting time series
using window()
with argument seasons
, see the examples.
orig
:the parent class of the partial cycle, an object inheriting from
class "BasicCycle"
.
subindex
:an integer vector specifying the seasons to include in the partial cycle.
Class "BasicCycle"
, directly.
signature(x = "PartialCycle", abb = "logical")
: ...
signature(x = "PartialCycle", abb = "missing")
: ...
signature(object = "PartialCycle")
: ...
signature(x = "PartialCycle")
: ...
signature(x = "PartialCycle")
: ...
signature(object = "PartialCycle")
: ...
BuiltinCycle
dwc <- new("DayWeekCycle")
dwc
allSeasons(dwc)
## a five day week cycle
dwc5 <- new("PartialCycle", orig = dwc, subindex = 1:5)
dwc5
allSeasons(dwc5)
weekend <- new("PartialCycle", orig = dwc, subindex = 6:7)
weekend
allSeasons(weekend)
ap <- pcts(AirPassengers)
## take data for the summer months (in Northern hemisphere)
ap7to9 <- window(ap, seasons = 7:9)
## the above implicitly creates a partial cycle
ap7to9
allSeasons(ap7to9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.