cantemp_fetch: Fetch homogenized temperature data for 338 Canadian climate...

Description Usage Arguments Value Author(s) References Examples

Description

Fetch a tidy data.frame with homogenized temperatures for 338 Canadian climate stations, optionally subset to a given interval (monthly, seasonal, or annual).

Usage

1
cantemp_fetch(interval = "annual")

Arguments

interval

The interval of interest. One of "monthly" (monthly intervals), "seasonal" (seasonal intervals), "annual" (annual intervals), or "all" (all intervals combined).

Value

A data.frame with homogenized temperature data for 338 Canadian climate stations, averaged at the specified interval. Columns include:

prov

Two-letter abbreviation for province

station

Name of climate station

stnid

Climate station identifier

year

Observation year

period

Observation period (either a month, season, or "Annual", as specified in argument interval)

temp

Observed mean temperature in degrees celcius

flag

Flag giving information about temperature data (M: missing value, E: estimated during archiving process, a: adjusted for homogeneity, NA: original value)

Author(s)

Patrick M. Barks <patrick.barks@gmail.com>

References

Vincent, L. A., X. L. Wang, E. J. Milewska, H. Wan, F. Yang, and V. Swail (2012). A second generation of homogenized Canadian monthly surface air temperature for climate trend analysis. Journal of Geophysical Research 117(D18110). https://doi.org/10.1029/2012JD017859

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# temperatures for monthly intervals
clim_month <- cantemp_fetch(interval = "monthly")

# temperatures for seasonal intervals
clim_season <- cantemp_fetch(interval = "seasonal")

# temperatures for annual intervals
clim_annual <- cantemp_fetch(interval = "annual")

# temperatures for all intervals
clim_all <- cantemp_fetch(interval = "all")

patrickbarks/cantempr documentation built on May 22, 2019, 2:45 p.m.