Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
R is a free, open-source programming language and software environment for statistical computing, bioinformatics, and graphics.
2
votes
Weighted mean with summarise_at dplyr
You can specify the weights directly within the weighted.mean() function, within the call to funs() like so:
data.frame(x=rnorm(100), y=rnorm(100), weight=runif(100)) %>%
summarise_at(vars(x,y) …