| inmet_get | R Documentation |
This is the recommended high-level interface. It downloads missing annual
archives, reuses valid cached files, and returns the result of inmet_read().
inmet_get(
years,
stations = NULL,
dest_dir = tools::R_user_dir("rmet", "cache"),
tz = "UTC",
variables = NULL,
start_date = NULL,
end_date = NULL,
max_tries = 15L,
force = FALSE,
quiet = FALSE
)
years |
Integer vector of years. |
stations |
Optional station codes. Matching is case-insensitive. |
dest_dir |
Directory containing |
tz |
Output time zone. Defaults to |
variables |
Optional meteorological columns to retain. |
start_date, end_date |
Optional inclusive date limits in |
max_tries |
Maximum download attempts per year. |
force |
Download archives again even if they are valid. |
quiet |
Suppress progress messages. |
A data frame as documented in inmet_read().
weather <- inmet_get(
years = 2023,
stations = "A801",
variables = c("temp_dry_c", "precip_mm"),
dest_dir = tempdir()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.