View source: R/import_below_above_temp.R
import_below_above_temp | R Documentation |
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.
import_below_above_temp(
station_id,
start_year,
end_year,
tmin_temp,
tmax_temp,
station_type,
year = NULL
)
station_id |
The character string of the station_id field from
|
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. |
A tibble
.
The import_data
wrapper function.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.