| seriesMerge | R Documentation |
Merges time series or signal objects, making a new object with all the columns of the input objects, and some or all of the rows, depending on how their positions match.
seriesMerge(x1, x2, ..., pos=positions(x1), how,
error.how, localzone=FALSE, matchtol=0,
suffixes)
x1 |
the first object to be merged. | ||||||||||||
x2 |
the second object to be merged. | ||||||||||||
... |
the other objects to be merged. | ||||||||||||
pos |
the positions to align to, or | ||||||||||||
how |
after the positions to align to are determined, Can be one of the following:
The default is | ||||||||||||
error.how |
specifies what to do in the event of an out of bounds error, which can
occur when Can be one of the following:
The default is | ||||||||||||
localzone |
if | ||||||||||||
matchtol |
the tolerance for matching positions. Positions that match within | ||||||||||||
suffixes |
the suffixes to append to the column names that are duplicated between
the various input data objects. The default value is
|
returns a new series object containing all the columns of all the inputs, and
all the rows of all the inputs, according to the alignment methods described above.
timeSeries, signalSeries, positions, align, merge.
a <- signalSeries(pos=1:10, data=data.frame(a = 11:20, b = 5 * (1:10)))
b <- signalSeries(pos=5:14, data=data.frame(a = 11:20, b = 5 * (1:10)))
seriesMerge(a, b)
a <- timeSeries(pos=as(1:10, "timeDate"),
data=data.frame(a = 11:20, b = 5 * (1:10)))
b <- timeSeries(pos=as(5:14, "timeDate"),
data=data.frame(a = 11:20, b = 5 * (1:10)))
seriesMerge(a, b, pos="union")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.