Learn R Programming

vetools (version 1.3-28)

est.fill: For each member of a collection call the function fill.small.missing

Description

Given a list of class Catalog, it completes each station's data in such a manner that all stations either start or end at the same time. Missing values for each station are estimated by calling the function fill.small.missing.

Usage

est.fill(collection, cut = c(1968, 3), at.start = T)

Arguments

collection
A list of class Catalog with member data of class ts with frequency 365.25.
cut
A vector designating the (year, month) that all stations will start.
at.start
Boolean value indicating whether the stations data should be completed from the start or the end.

Value

Returns a list of class Catalog with member data completed.

Details

The purpose of this function is to have a common start and/or end dates for a given collection of stations. Suppose there are three stations in a collection, with span
range(col$data[[1]]) -> c(1981,4) to c(2013,3)
range(col$data[[2]]) -> c(1981,2) to c(2013,4)
range(col$data[[3]]) -> c(1981,3) to c(2013,5)
and would like to have them all start on (1981,2) and end on (2013,5). This funcion can achieve this task.

See Also

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