Replaces an mcnode that is not found in the data or in the previous module with a specified value.
Usage
mcnode_null_rm(mcnode, null_value = 0)
Arguments
- mcnode
An mcnode object containing NA or infinite values
- null_value
Numeric value to replace NA and infinite values (default = 0)
Value
The mcnode if is found, otherwise the null_value
Examples
mcnode_null_rm(unexisting_mcnode)
#> [1] 0