fvsSetEventMonitorVariables: Set Event Monitor Variables

View source: R/fvsGetEventMonitorVariables.R

fvsSetEventMonitorVariablesR Documentation

Set Event Monitor Variables

Description

This function sets the values of Event Monitor variables. Generally, however, many of the variables are reset to by FVS when the Event Monitor is called each cycle (before and after simulated harvests). This is especially true of those automatic variables defined during the first and second calls to the Event Monitor (consult FVS documentation). Therefore setting the value of these variables may be in effective in meeting useful goals.

One use of this function is to set user-defined variables (those traditionally defined using the FVS Compute keyword). If a Event Monitor variable that has the name given in the names attribute of the vars argument is not found, one is created. If a user-defined variable has already been defined, it is given a new value when this function is called.

Usage

fvsSetEventMonitorVariables(vars)

Arguments

vars

A vector of named numeric values where the names are FVS Event Monitor variable names that will take on the corresponding values.

Value

A named vector of values. The values will be NA if they were not defined.


SilviaTerra/rFVS documentation built on March 25, 2023, 3:59 a.m.