Learn R Programming

vetools (version 1.3-28)

est.cut: Crops a list of time-series

Description

Given a time window, this function crops all the stations in a collection of data/catalog pair. If a given station starts after the end date (end) or ends before the inital date (start), it is removed from the catalog.

Usage

est.cut(collection, start = c(1960, 1), end = c(2020, 12))

Arguments

collection
A list of class Catalog.
start
The start of the window to crop. A vector of two elements (year, month).
end
The end of the windows to crop.

Value

Returns a list with the updated (cropped) collection. Note that the information regarding the stations meta-data is NOT modified. (!)

See Also

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