#' Replace missing values from the column `Ozone` of the dataset `airquality`
#'
#' @param raw A data frame.
#'
#' @return A data frame.
#' @export
#'
#' @examples
#' clean(airquality)
#' @importFrom dplyr .data
clean <- function(raw) {
dplyr::mutate(
raw,
Ozone = tidyr::replace_na(.data$Ozone, mean(.data$Ozone, na.rm = TRUE))
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.