/
data.R
118 lines (115 loc) · 2.91 KB
/
data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#' Wind conditions for Zaragoza Airport ("9434") period 2000-2020
#'
#'
#' @description
#' Daily observations of wind speed and directions for Zaragoza Airport
#' (2000-2020). This is an example dataset.
#'
#' @family dataset
#' @family wind
#'
#' @name climaemet_9434_wind
#'
#' @docType data
#'
#' @format A [`tibble`][tibble::tibble()] with columns:
#'
#' \describe{
#' \item{fecha}{Date of observation.}
#' \item{dir}{Wind directions (0-360).}
#' \item{velmedia}{Average wind speed (km/h)}
#' }
#'
#' @source AEMET.
#'
#' @examples
#' data(climaemet_9434_wind)
NULL
#' Average annual temperatures for Zaragoza Airport ("9434") period 1950-2020
#'
#'
#' @description
#' Yearly observations of average temperature for Zaragoza Airport
#' (1950-2020). This is an example dataset.
#' @examples
#' data(climaemet_9434_temp)
#' @family dataset
#' @family stripes
#'
#' @name climaemet_9434_temp
#'
#' @docType data
#'
#' @format A [`tibble`][tibble::tibble()] with columns:
#' \describe{
#' \item{year}{Year of reference.}
#' \item{indicativo}{Identifier of the station.}
#' \item{temp}{Average temperature (Celsius).}
#' }
#'
#' @source AEMET.
NULL
#' Climatogram data for Zaragoza Airport ("9434") period 1981-2010
#'
#'
#' @description
#' Normal data for Zaragoza Airport (1981-2010). This is an example dataset
#' used to plot climatograms.
#'
#' @family dataset
#' @family climatogram
#'
#' @name climaemet_9434_climatogram
#' @examples
#' data(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).}
#' }
#' @seealso [ggclimat_walter_lieth()], [climatogram_period()],
#' [climatogram_normal()]
#'
#' @source AEMET.
NULL
#' Data set with all the municipalities of Spain
#'
#' @name aemet_munic
#'
#' @docType data
#' @family dataset
#' @family forecast
#'
#' @description
#' A [`tibble`][tibble::tibble()] with all the municipalities of Spain as
#' defined by the INE (Instituto Nacional de Estadistica) as of January 2020.
#'
#' @source
#' INE, [Municipality codes by
#' province](https://www.ine.es/en/daco/daco42/codmun/codmunmapa_en.htm)
#'
#' @encoding UTF-8
#'
#' @seealso [aemet_forecast_daily()],
#' [aemet_forecast_hourly()]
#' @format
#' A [`tibble`][tibble::tibble()] 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 code of the autonomous community.}
#' }
#' @examples
#'
#' data(aemet_munic)
#'
#' aemet_munic
NULL