unitCycle_ass-methods: Methods for ”unitCycle<-” and ”unitSeason<-” in package...

unitCycle<–methodsR 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)

GeoBosh/pcts documentation built on Dec. 8, 2023, 9:57 p.m.