View source: R/fix_missing_numeric_values.R
fix_missing_numeric_values | R Documentation |
A function to fill missing values in numeric columns of a data frame with the mean of the column.
fix_missing_numeric_values(df)
df |
A data frame with missing values. |
A data frame with missing numeric values filled with the column mean.
df <- data.frame(w = c(7, 8, 180, 7), x = c("a", "b", "c", "d"),
y = c(4, 5, -6, 4), z = c(7, 8, NA, 7))
fix_missing_numeric_values(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.