View source: R/impute_w_mean.R
impute_w_mean_df | R Documentation |
Imputes NA/missing values in a data frame with random values plus/minus the percent around the mean across rows/columns
impute_w_mean_df(df, row.or.col = 2, p = 5)
df |
Numeric data frame or matrix |
row.or.col |
Number indicating direction to apply function - either 1 (rows) or 2 (columns, default) |
p |
the percent around the mean, e.g. p=5%=5 |
The input data frame with NAs imputed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.