Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

normalizeYP

Normalize Year-Period Array


Description

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)

Usage

normalizeYP(x = NULL, f = NULL)

Arguments

x

Input numerical array c(YEAR,PERIOD)

f

Frequency of normalization. Must be a positive integer.

Value

This function returns a numerical array c(YEAR,PERIOD)

See Also

Examples

#c(2,13) and frequency=4 => c(5,1)
	print(normalizeYP(c(2,13),4))

bimets

Time Series and Econometric Modeling

v1.5.3
GPL-3
Authors
Andrea Luciani [aut, cre], Roberto Stok [aut], Bank of Italy [cph]
Initial release
2021-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.