bind.variables {tdata} | R Documentation |
Bind Variables and Create a Data.frame
Description
Use this function to bind variables with the same class of frequency together.
Usage
bind.variables(
varList,
interpolate = FALSE,
adjustLeadLags = FALSE,
numExo = 0,
horizon = 0
)
Arguments
varList |
A list of variables (i.e., |
interpolate |
If |
adjustLeadLags |
If |
numExo |
An integer representing the number of exogenous variables. |
horizon |
An integer representing the required length of out-of-sample data if |
Value
A list with the following members:
data |
A numeric matrix representing the final data after the requested fixes. It is a matrix with variables in the columns and frequencies as the row names. |
info |
An integer matrix containing information about the columns of the final data, such as range of data, missing data, lags/leads, etc. |
Examples
v1 = variable(c(1,2,3,2,3,4,5),f.monthly(2022,12),"V1")
v2 = variable(c(10,20,30,20,30,40,50),f.monthly(2022,8),"V2")
L = bind.variables(list(v1,v2))