#' @title na.zero
#' @description converts NAs to zeroes
#' @family poorly documented
#' @author unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @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.
For more information on customizing the embed code, read Embedding Snippets.