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/alzRtools documentation built on Jan. 24, 2021, 10:24 p.m.