View source: R/bimets_ts_functions.R
normalizeYP | R Documentation |
This function normalizes a numerical array c(YEAR,PERIOD)
, given a frequency f
and PERIOD>=f
.
e.g. normalizeYP(c(2000,15),12) = c(2001,3)
normalizeYP(x = NULL, f = NULL)
x |
Input numerical array |
f |
Frequency of normalization. Must be a positive integer. |
This function returns a numerical array c(YEAR,PERIOD)
NUMPERIOD
frequency
#c(2,13) and frequency=4 => c(5,1)
print(normalizeYP(c(2,13),4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.