#' Convert NAs to Zeros
#'
#' @param df dataframe
#'
#' @export
convert_na <- function(df){
df <- dplyr::mutate_if(df, is.numeric, ~ ifelse(!is.finite(.), 0, .))
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.