set_missing_weather: Deal with missing weather values: convert to NAs

View source: R/sw_dbW_WeatherDatabase.R

set_missing_weatherR Documentation

Deal with missing weather values: convert to NAs

Description

Missing weather values may be coded with NA, with the corresponding SOILWAT2 value (i.e., rSOILWAT2:::rSW2_glovars[["kSOILWAT2"]][["kNUM"]][["SW_MISSING"]]), or with the value of the argument valNA.

Usage

set_missing_weather(data, valNA = NULL)

Arguments

data

A numerical object.

valNA

The (numerical) value of missing weather data. If NULL, then default values are interpreted as missing.

Value

data where SOILWAT2 missing values are converted to R-compatible NAs.


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.