weighted.sum | R Documentation |
Weighted Sum
weighted.sum(x, w, na.rm = TRUE)
x |
a numeric vector of values |
w |
a numeric vector of weights |
na.rm |
a logical indicating whether to ignore |
A numeric vector.
x <- 1:20
w <- runif(20)
weighted.sum(x, w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.