Description Usage Arguments Value
This function replaces na values with either the min, max, median or average value or removes the rows.
1 | replace_na(data, columns, replace = "mean", remove = FALSE)
|
data |
(tbl_df, df, data.frame) dataframe that the function will use to replace NAs |
columns |
(vector or list) columns that specify which column to replace |
replace |
(character) the method to replace missing values with |
remove |
(logical) set TRUE to remove missing value rows |
A list of tuples where each NAs will be replaced by either min, max, median or average.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.