View source: R/toolNAreplace.R
toolNAreplace | R Documentation |
Functions removes NAs, NaNs and infinite values in x and weight
toolNAreplace(x, weight = NULL, replaceby = 0, val.rm = NULL)
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 |
a list containing x and weight
Benjamin Bodirsky, Jan Philipp Dietrich
calcOutput
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.