Description Usage Arguments Examples
Calculate the rowwise weighted mean for columns selected in data.frame
1 | add_weighted_mean(.data, ..., .weights, .name = "weighted_mean", na.rm = TRUE)
|
.data |
data.frame |
... |
columns selected for rowwise 'sum' or 'mean' using 'tidyselect' grammar |
.weights |
weights corresponding columns selected in dataframe |
.name |
the name of new column |
na.rm |
whether to delete the missing value, 'TRUE' or 'FALSE' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.