
Get last observation values for a station.
aemet_last_obs(station = "all", verbose = FALSE, return_sf = FALSE)
Character string with station identifier code(s)
(see aemet_stations()
) or "all" for all the stations.
Logical TRUE/FALSE
. Provides information about the flow of
information between the client and server.
Logical TRUE
or FALSE
.
Should the function return an sf
spatial object? If FALSE
(the default value) it returns a tibble. Note that you need to
have the sf
package installed.
A tibble or a sf
object.
You need to set your API Key globally using aemet_api_key()
.
Other aemet_api_data:
aemet_daily_clim()
,
aemet_extremes_clim()
,
aemet_monthly
,
aemet_normal
,
aemet_stations()
# NOT RUN {
library(tibble)
obs <- aemet_last_obs(c("9434", "3195"))
glimpse(obs)
# }
Run the code above in your browser using DataLab