View source: R/toolConditionalReplace.R
toolConditionalReplace | R Documentation |
Sets values (NA, negative, ..) to value replaceby
toolConditionalReplace(x, conditions, replaceby = 0)
x |
magpie object |
conditions |
vector of conditions for values, that should be removed e.g. "is.na()", "< 0" (order matters) |
replaceby |
value which should be used instead (can be a vector of same length as conditions as well) |
return changed input data
Kristine Karstens
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.