toolNAreplace: Tool: NA replace

Description Usage Arguments Value Author(s) See Also

View source: R/toolNAreplace.R

Description

Functions removes NAs, NaNs and infinite values in x and weight

Usage

1
toolNAreplace(x, weight = NULL, replaceby = 0, val.rm = NULL)

Arguments

x

data

weight

aggregation weight

replaceby

value which should be used instead of NA. Either a single value or a MAgPIE object which can be expanded to the size of x (either same size or with lower dimensionality).

val.rm

vector of values that should in addition be removed in x

Value

a list containing x and weight

Author(s)

Benjamin Bodirsky, Jan Philipp Dietrich

See Also

calcOutput


madrat documentation built on Dec. 25, 2019, 9:07 a.m.