set_requested_flags: Assign requested values to (scalar) input flags

View source: R/Rsw.R

set_requested_flagsR Documentation

Assign requested values to (scalar) input flags

Description

Assign requested values to (scalar) input flags

Usage

set_requested_flags(swIn, tag, use, values, fun, reset = TRUE, default = NA)

Arguments

swIn

An object of class swInputData.

tag

A character string. This string is used to partially match names of parameter use which indicates which of the values should be manipulated.

use

A logical named vector.

values

A vector.

fun

A character string. Identifies the method to extract and replace values.

reset

A logical value.

default

A scalar value.

Value

An updated version of swIn.

Details

If reset is TRUE, then function resets flags identified by tag and turned off as identified by use to default. If reset is FALSE, then code sets flags identified by tag and turned on as identified by use to corresponding elements of values; other flags are not changed.


Burke-Lauenroth-Lab/rSOILWAT2 documentation built on Dec. 9, 2023, 1:46 a.m.