sumn0=function(x) { if(sum(x)==0) {return(sum(x)) }else{return(length(x)*mean(x[which(x!=0)]))} }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.