I'm just getting around to giving dplyr's chain operator a try.
Using the simple example:
group_by(mtcars, cyl) %>%
summarise(mean(disp), mean(hp))
I get the result:
# mean(disp) mean(hp)
#1 230.7219 146.6875
For some reason dplyr isn't grouping, just summarizing the entire vector. What am I missing?
Start a fresh session this is what I get:
Edit
Don't load
plyr
second (afterdplyr
) or at all. The problem is that it's usingplyr::summarise
notdplyr::summarise
: