knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
replace_na(data, columns, replace="mean", remove=FALSE)
replaces na values with either the min, max, median or mean values or removes the rows.
Input:
Output: a list of all the indices of a tibble or dataframe that have missing values
Example: replace_na(data, columns="x", replace="mean", remove=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.