toolNAreplace: Tool: NA replace

View source: R/toolNAreplace.R

toolNAreplaceR Documentation

Tool: NA replace

Description

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

Usage

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 Aug. 23, 2023, 5:10 p.m.