#' @export
#' @import data.table
wmean = function(x, weights) {
return(weighted.mean(x,weights))
}
# x = c(1,2)
# weights = c(1,2)
# wmean(x, weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.