setDefaultFrequencies: Return Known Time Index Frequencies, Change Default...

Description Usage Arguments Details Value See Also

View source: R/ti.R

Description

A tif (Time Index Frequency) can usually be set either by code (a number) or by name. setDefaultFrequencies sets particular frequencies for the tif names "weekly", "biweekly", "bimonthly" (also "bimonth"), "quarterly" (also "q"), "annual" (also "a"), and "semiannual" (also "sann").

tifList returns the map of frequency names to frequency codes.

Usage

1
2
3
4
5
6
7
8
setDefaultFrequencies(weekly     = "wmonday",
                      biweekly   = "bw1wednesday",
                      bimonthly  = "bimonthdecember",
                      quarterly  = "qdecember",
                      annual     = "anndecember",
                      semiannual = "sanndecember",
                      setup = FALSE)
tifList()

Arguments

weekly

A string giving the name of the particular frequency that frequency "weekly" will correspond to

biweekly

Ditto for "biweekly"

bimonthly

Ditto for "bimonth" and "bimonthly"

quarterly

Ditto for "q" and "quarterly"

annual

Ditto for "a" and "annual"

semiannual

Ditto for "sann" and "semiannual"

setup

If TRUE, set all of the defaults, otherwise set only the defaults for which arguments were given. The default is FALSE, but see the details

Details

The named vector .tifList (returned by the function of the same name) stored in the global enviroment contains the mapping of frequency names to frequency codes. Running this function modifies the tifList vector and stores it back in the global environment. It gets run with setup = TRUE when the tis package is loaded. If you want different defaults, call the function sometime after that.

Value

A copy of the .tifList vector.

See Also

tifName


tis documentation built on Sept. 29, 2021, 1:06 a.m.