This function merges two or more single signals into one common. Only eseis objects are supported. Gaps will be filled with NA
values unless the argument fill = TRUE. The resulting data length will correspond to the combined length of the input data. The sampling frequency must be the same for all input data sets. The meta data of the first stream will be used for the output data.
signal_merge(..., fill =FALSE)
Arguments
...: eseis objects that will be merged into one output eseis object. Can also be one list that contains eseis
objects.
fill: Logical value, option to fill data gaps between merged streams. Default is FALSE.
Returns
eseis object with merged input data sets
Examples
## load rockfall data setdata("rockfall")s_1 <- rockfall_eseis
## duplicate data set and shift start time (incl. gap)s_2 <- s_1
s_2$meta$starttime <- s_2$meta$starttime +500## merge data setss_merged <- signal_merge(s_1, s_2)## plot merged data setplot(s_merged)## merge and fill gaps_merged_filled <- signal_merge(s_1, s_2, fill =TRUE)## plot merged data setplot(s_merged_filled)