toolConditionalReplace: toolConditionalReplace

View source: R/toolConditionalReplace.R

toolConditionalReplaceR Documentation

toolConditionalReplace

Description

Sets values (NA, negative, ..) to value replaceby

Usage

toolConditionalReplace(x, conditions, replaceby = 0)

Arguments

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)

Value

return changed input data

Author(s)

Kristine Karstens


pik-piam/madrat documentation built on April 25, 2024, 3:12 a.m.