partMean <- function(x, na.rm = TRUE){
# must be datashield valid (more than <datashield.privacyLevel> rows):
if(!.dsBase_isValidDSS(x)){
return(NA)
}
return(list(mean = mean(x, na.rm = na.rm), len = length(x)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.