Mean<-function(x,w){ if(missing(w)){ Sum(x)/Count(x) }else{ Sum(x,w)/Count(x,w) } }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.