View source: R/ChileClimateData.R
ChileClimateData | R Documentation |
function that compiles climate data from Climate direction of Chile (D.M.C.)
ChileClimateData(Estaciones = "INFO", Parametros, inicio, fin, Region = FALSE)
Estaciones |
data vector containing the codes of the monitoring stations. To see the table with the monitoring stations use ChileClimateData() |
Parametros |
data vector containing the names of the climate parameters. Available parameters: "Temperatura", "PuntoRocio", "Humedad","Viento", "PresionQFE", "PresionQFF". |
inicio |
text string containing the start year of the data request. |
fin |
text string containing the end year of the data request. |
Region |
logical parameter. If region is true it allows to enter the administrative region in which the station is located instead of the station code. |
A data frame with climate data of Chile.
<http://www.meteochile.gob.cl/>
try({ChileClimateData()}, silent = TRUE) try({ data <- ChileClimateData(Estaciones = "180005", Parametros = c("Temperatura", "Humedad"), inicio = "2020", fin = "2020") }, silent = TRUE) try({ head(ChileClimateData(Estaciones = "II", Parametros = "Temperatura", inicio = "2020", fin = "2020", Region = TRUE)) }, silent = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.