reassignGlobalVariable: Reassign Global Variable

Description Usage Arguments Value

Description

Parameters used in running the imputation or processing algorithms are assigned to the global environment. To protect these parameters from being accidentally overwritten, we call lockBinding. This prevents reassignment of these variables, but occassionally these variables do need to be reassigned. This function allows this reassignment by temporarily unlocking the variable, reassigning the value, and relocking it. This function should be used with caution: values that have already been ensured can be changed and not checked, which could be disastrous.

Usage

1

Arguments

var

The name of the variable to be reassigned.

value

The value to be reassigned to var.

Value

No value is returned, instead this function changes the global variable var.


SWS-Methodology/faoswsImputation documentation built on May 9, 2019, 11:48 a.m.