normals: Import NOAA calculated normals

View source: R/normals.R

normalsR Documentation

Import NOAA calculated normals

Description

This function imports 30-year normals calculated by NOAA from ClimateAnalyzer.org into R.

Usage

normals(ref_period = "1991-2020", station_id = NULL, tidy = TRUE)

Arguments

ref_period

The string for 30-year reference period. The user can choose "1971-2000", "1981-2010", or "1991-2020". Default is "1991-2020".

station_id

Optional. The character string of the station_id field from stations. Default is NULL. If NULL, a data frame of 30-year normals for all stations will be returned.

tidy

Logical. Returns tidy data. Default is TRUE.

TRUE

Returns a tidy data frame of temperature (tmax and tmin) and precipitation data. This option drops seasonal earliest/last dates for temperatures and number of days above/below temperatures.

FALSE

Returns the raw dat from ClimateAnalyzer.org.

Value

A tibble.

Examples

library(climateAnalyzeR)

# Import 1981-2010 normals. Default.
normals(station_id = "capitol_reef_np")

# Import 1971-2000 normals for multiple stations
normals(ref_period = "1971-2000",
        station_id = c("dinosaur_nm", "dinosaur_quarry_area"))


scoyoc/climateAnalyzeR documentation built on April 19, 2023, 9:57 p.m.