Learn R Programming

nowcasting (version 0.0.90)

PRTDB: Pseudo Real time data base

Description

Create a pseudo real time data base, based on data and delays of disclosure estipulated by the user.

Usage

PRTDB(mts, delay, today = Sys.Date())

Arguments

mts

A matrix time series - mts - with the series to be transformed.

delay

A numeric vector with the delay in days the information is available after the reference month. Each element correspond to the series in the respective column in mts.

today

The day where the data is supposed to be collected.

Value

A mts with the series transformed.

Examples

Run this code
# NOT RUN {
# Pseudo Real Time Data Base from data base vintage
PRTDB(vintage,1:dim(vintage)[2])
# }

Run the code above in your browser using DataLab