weather: Ten years of daily weather data

Description Usage Format Source See Also Examples

Description

The VFS offers the capability of importing weather data from the GHCN, either from local files or the online repository, but this import is slow, so the result of the import is saved as an R object for those examples that need it.

The original GHCN file has many more columns.

Usage

1
data("weather")

Format

A data frame with 3653 observations on the following 8 variables.

YEAR

a numeric vector

MONTH

a numeric vector

DAY

a numeric vector

PRCP.VALUE

a numeric vector

SNOW.VALUE

a numeric vector

SNWD.VALUE

a numeric vector

TMAX.VALUE

a numeric vector

TMIN.VALUE

a numeric vector

Source

GHCN data comprises both current and historical weather station data world-wide.

See Also

wth.param, read.dly

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# state college GHCN data
#
# created by:
# weather <- read.dly(system.file("extdata", "USC00368449.dly", package = "VFS"))
data("weather") # same object: 10 years of daily weather data

weather.param <- wth.param(weather, method="markov")

rain.compare <- rainfall(365*3, weather.param)
temp.compare <- temperature(365*3, weather.param)

sgoslee/VFS documentation built on May 16, 2019, 11:13 p.m.