vetools (version 1.3-28)

est.sort: Sort a data/catalog pair

Description

Given a collection of data/catalog pairs, this function orders them by the start time. Sorts by start(collection$data[[k]]), provided that the member data is of class ts.

Usage

est.sort(collection, ascending = T, by.year.only = F)

Arguments

collection
A list of class Catalog objects.
ascending
Boolean value indicating wheather it is ordered by earliest or latest starting station.
by.year.only
Use only the year to sort instead of year/month. Defaults to FALSE.

Value

Returns a sorted list of class Catalog, sorted by start date of the objects in collection$data.

See Also

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