View source: R/impute_missing_values.R
impute_missing_values | R Documentation |
Impute any missing values from selected columns within a data.frame
impute_missing_values(
data_df = NULL,
col_nm_vec = NULL,
method = c("randomForestSRC", "missForest", "Hmisc"),
my_seed = 5,
ntree = 1000,
nk = 4,
...
)
data_df |
data.frame with potential missing values |
col_nm_vec |
character vector of column names that should be either imputed and/or used to impute other columns |
method |
which method to use, either by creating random forests using the |
my_seed |
seed for random number generator, to make results reproducible |
ntree |
how many trees to build if |
nk |
how many knots to use in smoothing splines if using |
... |
other arguments to be passed to either |
a data.frame with the same dimensions as the original, but with no missing values
Kevin see
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.