Description Usage Arguments Value

View source: R/helper_functions.r

given a vector of values and a vector of weights, compute the weighted mean

1 | ```
weighted.mean(x, w, na.rm = FALSE)
``` |

`x` |
the vector of values |

`w` |
the vector of weights |

`na.rm` |
if TRUE, only consider elmeents of x that are not missing (and their corresponding entries in w). Defaults to FALSE. |

the weighted mean

surveybootstrap documentation built on May 29, 2017, 9:09 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.