Description Usage Arguments Details Value See Also Examples
Return the tif code of an object, the name associated with a tif code, the period number of a time index, or the first .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | tif(x, ...)
## S3 method for class 'ti'
tif(x, ...)
## S3 method for class 'tis'
tif(x, ...)
## S3 method for class 'ts'
tif(x, ...)
## Default S3 method:
tif(x, freq = NULL, ...)
tifName(s)
## Default S3 method:
tifName(s)
## S3 method for class 'ti'
tifName(s)
## S3 method for class 'tis'
tifName(s)
period(z)
basePeriod(x)
|
x |
a |
freq |
numeric. If |
... |
ignored |
s |
a |
z |
a |
The tifList
object associates tifNames with tif codes. Most
functions that call for tif
argument can take either a tif code
or a tif name.
Both function are generic function with methods for ti
and
tis
objects, as well as a default method. tif
also has
a method for ts
objects.
tif
returns the tif code for x
, while tifName
returns a name for that code. Many of the codes have several names,
but only the default one is returned.
tif
or tifName
called with no arguments returns a vector
of all tif codes with names.
period
returns a vector like z
giving the number of
periods elapsed since the first period defined for its argument's
frequency.
basePeriod
returns the ti
for the first period defined
for tif(x)
.
1 2 3 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.