Description Usage Arguments Value
View source: R/kmeans-analysis.R
This function is used to fill missing NA values using common imputation methods. The imputation method can be chosen by setting the meth parameter. For a list of all the available imputation methods available, please check the documentation of the mice::mice function (?mice::mice)
1 2 | approximate_NAs(data, seed, exclude_variables = list("lon", "lat",
"id_pixel"), m = 5, maxit = 50, meth = "pmm", verbose = FALSE, ...)
|
data |
a dplyr dataframe containing the data to be standardized |
seed |
random seed for reproducibility purposes |
exclude_variables |
variables to be excluded from the standardization process. A list of characters. |
m |
Number of multiple imputations. The default is m=5. |
maxit |
A scalar giving the number of iterations. The default is 5 |
meth |
method used for imputation. See mice::mice function description for more information. |
verbose |
Be verbose? |
... |
other parameters passed directly to the mice::mice function |
A dplyr dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.