# replace missing values in numeric a vector to 0;
coalesce_zero <- function(x){
require('dplyr')
if(is.integer(x)){
coalesce(x, 0L)
}else{
coalesce(x, 0)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.