R/data.R

#' Wind conditions for Zaragoza Airport ("9434"), 2000-2020
#'
#' @description
#' Daily observations of wind speed and directions for Zaragoza Airport
#' (2000-2020). This is an example dataset.
#'
#' @name climaemet_9434_wind
#'
#' @docType data
#'
#' @format A [tibble][tibble::tbl_df] with columns:
#'
#' \describe{
#'   \item{fecha}{Date of observation.}
#'   \item{dir}{Wind directions (0-360).}
#'   \item{velmedia}{Average wind speed (km/h).}
#' }
#'
#' @family dataset
#' @family wind
#'
#' @source AEMET.
#'
#' @examples
#' data(climaemet_9434_wind)
NULL

#' Average annual temperatures for Zaragoza Airport ("9434"), 1950-2020
#'
#' @description
#' Yearly observations of average temperature for Zaragoza Airport
#' (1950-2020). This is an example dataset.
#' @name climaemet_9434_temp
#'
#' @docType data
#'
#' @format A [tibble][tibble::tbl_df] with columns:
#' \describe{
#'   \item{year}{Year of reference.}
#'   \item{indicativo}{Identifier of the station.}
#'   \item{temp}{Average temperature (Celsius).}
#' }
#'
#' @family dataset
#' @family stripes
#'
#' @inherit climaemet_9434_wind source
#' @examples
#' data(climaemet_9434_temp)
NULL

#' Climatogram data for Zaragoza Airport ("9434"), 1981-2010
#'
#' @description
#' Normal data for Zaragoza Airport (1981-2010). This is an example dataset
#' used to plot climatograms.
#'
#' @name climaemet_9434_climatogram
#' @docType data
#'
#' @format A [data.frame] with columns 1 to 12 (months) and rows:
#' \describe{
#'   \item{p_mes_md}{Precipitation (mm).}
#'   \item{tm_max_md}{Maximum temperature (Celsius).}
#'   \item{tm_min_md}{Minimum temperature (Celsius).}
#'   \item{ta_min_md}{Absolute monthly minimum temperature (Celsius).}
#' }
#' @family dataset
#' @family climatogram
#'
#' @inherit climaemet_9434_wind source
#'
#' @seealso [ggclimat_walter_lieth()], [climatogram_period()],
#' [climatogram_normal()]
#'
#' @examples
#' data(climaemet_9434_climatogram)
NULL

#' Municipalities of Spain
#'
#' @description
#' A [tibble][tibble::tbl_df] with all municipalities of Spain as defined by
#' the INE (Instituto Nacional de Estadistica) as of January 2025.
#'
#' @name aemet_munic
#'
#' @docType data
#' @format
#' A [tibble][tibble::tbl_df] with
#' `r prettyNum(nrow(climaemet::aemet_munic), big.mark=",")` rows and fields:
#' \describe{
#'   \item{municipio}{INE code of the municipality.}
#'   \item{municipio_nombre}{INE name of the municipality.}
#'   \item{cpro}{INE code of the province.}
#'   \item{cpro_nombre}{INE name of the province.}
#'   \item{codauto}{INE code of the autonomous community.}
#'   \item{codauto_nombre}{INE name of the autonomous community.}
#' }
#' @family dataset
#' @family forecast
#'
#' @source
#' INE, municipality codes by province:
#'
#' <https://www.ine.es/daco/daco42/codmun/diccionario25.xlsx>
#' @seealso [aemet_forecast_daily()],
#' [aemet_forecast_hourly()]
#' @examples
#'
#' data(aemet_munic)
#'
#' aemet_munic
#' @encoding UTF-8
#'
NULL

Try the climaemet package in your browser

Any scripts or data that you put into this service are public.

climaemet documentation built on June 3, 2026, 5:07 p.m.