Learn R Programming

midasr (version 0.2)

+.lws_table: Combine lws_table objects

Description

Combines lws_table objects

Usage

## S3 method for class 'lws_table':
+(..., check = TRUE)

Arguments

...
lws_table object
check
logical, if TRUE checks that the each lws_table object is named a list with names c("weights","lags","starts")

Value

  • lws_table object

Details

The lws_table objects have similar structure to table, i.e. it is a list with 3 elements which are the lists with the same number of elements. The base function c would cbind such tables. This function rbinds them.

Examples

Run this code
nlmn <- expand_weights_lags("nealmon",0,c(4,8),1,start=list(nealmon=rep(0,3)))
nbt <- expand_weights_lags("nbeta",0,c(4,8),1,start=list(nbeta=rep(0,4)))

nlmn+nbt

Run the code above in your browser using DataLab