Description Usage Arguments Value Examples
Replace numeric missing values with mean of the column
1 |
data |
a dataframe containing numeric variables (e.g double or integer).No default data selected, must be an argument. |
verbose |
the verbose argument indicates the output was successful, by default verbose = FALSE as this function was designed for small data sets. For larger data sets, verbose = TRUE may be useful to know the function is being applied to large data frames as the function will take longer. If TRUE, returns Processing successful. |
fun |
specifies the function to be applied to missing values. By default, fun refers to mean(.x). An alternative function can be specified (fun = f(x)). |
trim |
a fraction of outlying observations to be ignored when calculating for the replacement of NA. By default the trim is set to 0. |
NA2x replaces each numeric missing value with the default being the mean of that column.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.