powered by
WeightedMean(x, weights = NULL, normwt = "ignored", na.rm = TRUE)
x
TRUE
na.rm = FALSE
x <- sample(10,10) w <- sample(5,10, replace=TRUE) WeightedMean(x, w)
Run the code above in your browser using DataLab