import_below_above_temp: Import count of days with temperatures below and above user...

View source: R/import_below_above_temp.R

import_below_above_tempR Documentation

Import count of days with temperatures below and above user set temps

Description

This function imports the number of days per year that are below a user set minimum temperature and above a user set maximum temperatures from ClimateAnalyzer.org into R.

Usage

import_below_above_temp(
  station_id,
  start_year,
  end_year,
  tmin_temp,
  tmax_temp,
  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.

tmin_temp

One to three digit number, including - for temperatures below zero, for the minimum temperature threshold in Fahrenheit

tmax_temp

One to three digit number for the maximum temperature threshold in Fahrenheit

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_below_above_temp(station_id = "tumacacori", start_year = 1991, end_year =
2020, tmin_temp = 20, tmax_temp = 100, station_type = "GHCN", year = "year")


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