imputeY | R Documentation |
Impute NAs and Inf in y
imputeY(x, y, control)
x |
The x values from which y was calculated |
y |
The vector of numerics from which NA/Inf values should be removed |
control |
|
y The imputed vector w/o NA
and w/o Inf
values.
x <- matrix(runif(10), ncol=2, nrow=5) y <- funSphere(x) y[1] <- NA control <- spotControl(dimension = 2) # no imputation function, i.e, w/o imputation imputeY(x=x, y=y, control=control) # with imputation control$yImputation$handleNAsMethod <- handleNAsKrigingWorst y <- imputeY(x=x, y=y, control=control) # no imputation required: imputeY(x=x, y=y, control=control)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.