meteospain2meteoland {meteoland} | R Documentation |
From meteospain to meteoland meteo objects
Description
Adapting meteospain meteo objects to meteoland meteo objects
Usage
meteospain2meteoland(meteo, complete = FALSE)
Arguments
meteo |
meteospain meteo object. |
complete |
logical indicating if the meteo data missing variables should be calculated (if possible). Default to FALSE. |
Details
This function converts meteospain
R package meteo objects to
compatible meteoland meteo objects by selecting the needed variables and
adapting the names to comply with meteoland requirements.
Value
a compatible meteo object to use with meteoland.
Examples
if (interactive()) {
# meteospain data
library(meteospain)
mg_april_2022_data <- get_meteo_from(
"meteogalicia",
meteogalicia_options("daily", as.Date("2022-04-01"), as.Date("2022-04-30"))
)
# just convert
meteospain2meteoland(mg_april_2022_data)
# convert and complete
meteospain2meteoland(mg_april_2022_data, complete = TRUE)
}
[Package meteoland version 2.2.1 Index]