Skip to contents

This function obtains a table with the specified weather warning number. For more information, please visit the following link: https://www.Senamhi.gob.pe/?&p=aviso-meteorologico

Usage

senamhi_alert_by_number(nro = NULL)

Arguments

nro

A numeric value. Represents the number of the weather warning issued by Senamhi.

Value

A tibble object containing the weather alert data.

Examples

# \donttest{
library(geoidep)
data <- senamhi_alert_by_number(295)
#> Reading data from the website...
#> Data successfully uploaded.
head(data)
#> # A tibble: 2 × 7
#>   aviso                                nro   emision inicio fin   duracion nivel
#>   <chr>                                <chr> <chr>   <chr>  <chr> <chr>    <chr>
#> 1 PRECIPITACIONES EN LA SIERRA         295   2024-1… 2024-… 2024… 47 Hrs.  NARA…
#> 2 PRECIPITACIONES EN LA COSTA NORTE Y… 295   2023-1… 2023-… 2023… 47 Hrs.  ROJO 
# }