#' @export na.zero <- function(x){ for(i in 1:length(x[1,])){ if(length(which(is.na(x[,i])))>0){ x[which(is.na(x[,i])),i] <- 0} } return(x) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.