vetools (version 1.3-28)

est.union: Unites data from a collection of data/catalog pair

Description

This function merges a list of ts objects into a single time-series. It does it by taking the mean (meadian, fun) of the common elements for each time.

Usage

est.union(collection, fun = mean, return.matrix=FALSE)

Arguments

collection
A list of class Catalog.
fun
The function by which to unite the common elements. Defaults to mean.
return.matrix
Returns a matrix where each collumn is a time-series (of each station), synchronized in time.

Value

Returns an enhanced Catalog object with an additional member called union of class ts that contains the union of all stations described in collection. If return.matrix is true, then it returns a matrix time stamped where each collumn is a station data.

See Also

The other est.* family members: est.rm, est.sort, est.cut, est.fill.