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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/est.union.R

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

1
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.

Author(s)

A.M. Sajo-Castelli

See Also

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

Examples

1
2
3
4
5
6
7
## Not run: 
names(collection)
collection = est.union(collection)
names(collection)
plot(collection$union)
abline(h = 250, v = 1997:2000)
## End(Not run)

vetools documentation built on May 2, 2019, 10:15 a.m.