Description Usage Arguments Value
View source: R/impute_group_mean.R
Imputation using by-group mean.
1 | impute_group_mean(x, varnames_impute, varnames_grp, pre_df_means = NULL)
|
x |
Data frame with missing values, and those values for imputation calculations. |
varnames_impute |
Vector of variable name(s) with missing values to be imputed. |
varnames_grp |
Vector of variable name(s) used for grouping. |
pre_df_means |
Existing data frame of by-group means, if available. |
A list of associated imputation objects:
(If pre_df_means not specified) df_means, data frame of by-group means.
M, data frame of T/F, indicating: this cell was missing originally.
df_impute, imputations overwritten for missing values of original input 'df'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.