IRIS Toolbox Reference Manual
dbextend
Combine tseries observations from two or more databases
Syntax
D = dbextend(D,D1,D2,...)
D
[ struct ] - Primary input database.
D1
, D2
, ... [ struct ] - Databases whose tseries observations will be used to extend or overwrite observations in the tseries objects of the same name in the primary database.
Output arguments
D
[ struct ] - Output database.
Description
If more than two databases are combined then they are processed one-by-one: the first is combined with the second, then the result is combined with the third, and so on, using the following rules:
- If two non-empty tseries objects with the same frequency are combined, the observations are spliced together. If some of the observations overlap the observations from the second tseries are used.
- If two empty tseries objects are combined the first is used.
- If a non-empty tseries is combined with an empty tseries, the non-empty one is used.
- If two objects are combined of which at least one is a non-tseries object, the second input object is used.
Example
IRIS Toolbox. Copyright © 2007-2015 IRIS Solutions Team.