Skip to contents

This function downloads the weather forecast table provided by Senamhi according to the specified year.

Usage

senamhi_alerts_by_year(data = NULL, year = NULL)

Arguments

data

A tibble object containing the weather alert data.

year

A numeric value indicating the year of publication of the weather warning.

Examples

# \donttest{
library(geoidep)
data <- senamhi_alerts_by_year(year = 2024)
#> Reading data from the website...
#> Data successfully uploaded.
head(data)
#> # A tibble: 6 × 7
#>   aviso                                nro   emision inicio fin   duracion nivel
#>   <chr>                                <chr> <chr>   <chr>  <chr> <chr>    <chr>
#> 1 LLUVIA EN LA SELVA - DÉCIMO OCTAVO … 309 … 2024-1… 2024-… 2024… 47 Hrs.  AMAR…
#> 2 INCREMENTO DE TEMPERATURA DIURNA EN… 308 … 2024-1… 2024-… 2024… 23 Hrs.  NARA…
#> 3 INCREMENTO DE TEMPERATURA DIURNA EN… 307 … 2024-1… 2024-… 2024… 47 Hrs.  NARA…
#> 4 INCREMENTO DE TEMPERATURA DIURNA EN… 306 … 2024-1… 2024-… 2024… 61 Hrs.  NARA…
#> 5 DESCENSO DE TEMPERATURA NOCTURNA EN… 305 … 2024-1… 2024-… 2024… 71 Hrs.  NARA…
#> 6 PRECIPITACIONES EN LA SIERRA CENTRO  304 … 2024-1… 2024-… 2024… 33 Hrs.  AMAR…
# }