zummarise | R Documentation |
When I first started using dplyr
, I thought summarise
would completely ungroup the object it was called on. Later, I learned that
it only peeled back the last-named grouping argument. To make sure my code was
doing what I wanted it to, I created this function as a way of implementing what
I thought summarise
actually did
zummarise(.data, ...)
.data |
A tbl. I believe that all main verbs are S3 generics and provide methods for |
... |
From These arguments are automatically quoted and
evaluated in the context of the data
frame. They support unquoting and
splicing. See |
An object of the same class as .data
. All grouping levels will be dropped.
Data frame row names are silently dropped. To preserve, convert to an explicit variable.
zummarise(dplyr::group_by(mtcars, cyl, gear), mean(disp))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.