historical_download: Download daily historical records from Meteoclimatic

View source: R/historical_download.R

historical_downloadR Documentation

Download daily historical records from Meteoclimatic

Description

historical_download allows to download all the historical daily Meteoclimatic database. Records starts in 2012.

Usage

historical_download(
  id = "ESIBA",
  dates = c("2021-05-16", "2021-07-15"),
  months = c(1:12),
  save_excel = TRUE
)

Arguments

id

character. Id of the CCAA, used by Meteoclimatic. Default "ESIBA" Balearic Islands.

dates

character. Starting and ending date. Alternatively, a unique date is also allowed.

months

numeric. Optional. Month subset Only applies for ranges of dates.

save_excel

logical. Save the downloaded database in an Excel file

Value

A list with:

  • A data.frame containing georreferenced daily meteorological values for all the stations located in the requested CCAA.

See Also

current_download

Examples

historical_data <- historical_download(id = "ESIBA",
dates = c("2021-05-16","2021-07-15"),
save_excel = FALSE)


lemuscanovas/meteoclimaticR documentation built on Dec. 22, 2024, 7:27 p.m.