cbind.tis: Combine Series Into a Multivariate (Matrix) Time Indexed...

Description Usage Arguments Details Value Note See Also

Description

This is cbind for tis objects. It binds several ts and tis objects together into a single matrix time indexed series.

Usage

1
2
## S3 method for class 'tis'
cbind(..., union = F)

Arguments

...

any number of univariate or multivariate ts or tis objects. All will be converted to tis objects by as.tis, and the result series all must have the same tif (time index frequency).

union

a logical. If union = F, a matrix created by the intersection of the time windows for the arguments will be created. If union = T, the union of the time windows will be used to create the matrix.

Details

If union is TRUE and the series in ... do not all start and end on the same time index, the missing observations are filled with NA.

The column names of the returned series are determined as follows:

If an argument was given a name in the call, the corresponding column has that name. If the argument was itself a matrix with column names, those will be used, otherwise the argument's name is expanded with digits denoting its respective columns.

Value

a multivariate tis object.

Note

Class "ts" has it's own cbind method which knows nothing about tis objects. R generic functions like cbind dispatch on the class of their first argument, so if you want to combine tis and ts objects by calling the generic cbind, be sure that the first argument is a tis, not a ts. You can always ensure this is the case by wrapping the first argument in ... in as.tis().

See Also

cbind



Search within the tis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.