R/wt.mean.R

Defines functions wt.mean

Documented in wt.mean

wt.mean <-
function(x,wt){
  s = which(is.finite(x * wt))
  wt = wt[s]
  x = x[s]
  return(sum(wt * x)/sum(wt))
}

Try the LPGraph package in your browser

Any scripts or data that you put into this service are public.

LPGraph documentation built on Jan. 31, 2020, 1:06 a.m.