Learn R Programming

meteoland (version 2.0.1)

complete_meteo: Complete missing meteo variables

Description

Calculates missing meteo variables

Usage

complete_meteo(meteo, verbose = getOption("meteoland_verbosity", TRUE))

Value

the same meteo data provided with the the variables completed

Arguments

meteo

meteoland meteo data

verbose

Logical indicating if the function must show messages and info. Default value checks "meteoland_verbosity" option and if not set, defaults to TRUE. It can be turned off for the function with FALSE, or session wide with options(meteoland_verbosity = FALSE)

Details

This function takes a meteo object (with meteoland names) and complete any missing variable if it is possible

Examples

Run this code

# \donttest{
# example data
data("meteoland_meteo_example")

# remove MinRelativeHumidity
meteoland_meteo_example$MinRelativeHumidity <- NULL
# complete vars
completed_meteo <- complete_meteo(meteoland_meteo_example)
# check MinRelativeHumidity
completed_meteo$MinRelativeHumidity
# }

Run the code above in your browser using DataLab