import_extreme_temp: Import count of days with extreme temperatures

View source: R/import_extreme_temp.R

import_extreme_tempR Documentation

Import count of days with extreme temperatures

Description

This function imports the number of days per year that temperatures were below the 5th percentile and above the 95th percentile from ClimateAnalyzer.org into R.

Usage

import_extreme_temp(
  station_id,
  start_year,
  end_year,
  station_type,
  year = NULL
)

Arguments

station_id

The character string of the station_id field from stations.

start_year

The four digit number of the last year of interest.

end_year

The four digit number of the last year of interest.

station_type

A character string for the type of weather station the data are being pulled from. Options include "GHCN", "SNOTEL", and "RAWS".

year

A character string for the year period. Options include "year" for calendar year and "water_year". Default is "year". If using "water_year"ensure that the start_year is the year prior to the period of interest.

Value

A tibble.

See Also

The import_data wrapper function.

Examples

library(climateAnalyzeR)

import_extreme_temp (station_id = "tumacacori", start_year = 1991, end_year =
2020, station_type = "GHCN", year = "year")


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