R/wmean.R

Defines functions wmean

#' @export
#' @import data.table

wmean = function(x, weights) {
  return(weighted.mean(x,weights))
}

# x = c(1,2)
# weights = c(1,2)
# wmean(x, weights)
anthonyleezhang/alzgraphlib documentation built on Jan. 6, 2021, 2:46 a.m.