unitCycle<–methods {pcts} | R Documentation |
Methods for `unitCycle<-`
and `unitSeason<-`
in package pcts
Description
Methods for `unitCycle<-`
and `unitSeason<-`
in package pcts.
Methods
`unitCycle<-`
and `unitSeason<-`
have methods with identical
signatures:
signature(x = "Cyclic")
signature(x = "SimpleCycle")
See Also
allSeasons
for related functions and examples
Examples
qrt <- BuiltinCycle(4)
unitSeason(qrt) # "Quarter"
unitCycle(qrt) # "Year"
moreve <- new("SimpleCycle", 2)
unitSeason(moreve) # "Season"
unitCycle(moreve) # "Cycle"
allSeasons(moreve) # c("Season_1", "Season_2")
## change the names
unitCycle(moreve) <- "Day"
unitSeason(moreve) <- "TimeOfDay"
allSeasons(moreve) <- c("Morning", "Evening")
unitSeason(moreve)
unitCycle(moreve)
allSeasons(moreve)
[Package pcts version 0.15.7 Index]