View source: R/import_monthly.R
import_monthly | R Documentation |
This function imports monthly temperature and precipitation data from ClimateAnalyzer.org into R.
import_monthly(
station_id,
start_year,
end_year = NULL,
month = "all",
convert = FALSE
)
station_id |
The character string of the station_id field from
|
start_year |
The four digit number of the first year of interest. |
end_year |
The four digit number of the last year of interest. Default is NULL. If NULL, current year will be used. |
month |
A number for the month, 1 for January through 12 for December or 'all' for all months. Default is 'all'. |
convert |
Logical. If TRUE, data are precipitation and temperature values are converted to metric. These converted values are included as additional columns in the data frame denoted by "_mm" or "_C". Default is FALSE. |
A tibble
.
The import_data
wrapper function.
library(climateAnalyzeR)
# Import monthly precipitation and temperature data
import_monthly(station_id = 'canyonlands_theneedle', start_year = 2000,
end_year = 2010)
# Import monthly precipitation and temperature data for the month of June and
# convert values to metric
import_monthly(station_id = 'canyonlands_theneedle', start_year = 2000,
end_year = 2010, month = 6, convert = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.