stationCompare: Compare GHCN Weather Stations

View source: R/weatherHelper.R

stationCompareR Documentation

Compare GHCN Weather Stations

Description

Compare weather stations returned by stationSearch

Usage

stationCompare(st, startdate, enddate)

Arguments

st

Data frame of stations returned by stationSearch

startdate

the start date of the interval to compare

enddate

the end date of the interval to compare

The start and end date arguments should either be POSIX date objects, or coercible to with as.Date. So for example "2013-01-01" is appropriate.

Value

An object of S3 class stationComp. This is a list with two entries 1) data - the weather data for the requested stations over the requested interval and 2) stations - the station info data frame.

See Also

summary.stationComp plot.stationComp read.ghcn

Examples

# Compare 5 closest weather stations to Ecotope's Seattle office
stations <- stationSearch(lat = 47.6569326, lon = -122.3184546)
comp <- stationCompare(stations, "2014-01-01", "2014-12-31")
summary(comp)
plot(comp)

EcotopeResearch/rterm documentation built on Oct. 17, 2022, 4:02 p.m.