#' na_zero
#'
#' Convert NA values to 0
#' @param x An R object - could be a column, vector or dataframe
#' @export
na_zero <- function(x) {
x[is.na(x)] <- 0
return(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.