| summarize | R Documentation |
This is an alternate interface to crunch::crtabs() that, in addition to
being "tidy", makes it easier to query multiple measures at the same time.
## S3 method for class 'CrunchDataset'
summarise(.data, ...)
.data |
A |
... |
named aggregations to include in the resulting table. |
Note that while mutate() is not generally supported in crplyr, you can
derive expressions on the fly in summarize().
A tbl_crunch_cube or cr_tibble of results. This subclass
of tibble allows ggplot2::autoplot to work, but can get in the way
in some tidyverse operations. You may wish to convert to a tibble using
as_tibble().
## Not run:
ds %>%
filter(cyl == 6) %>%
group_by(vs) %>%
summarize(hp=mean(hp), sd_hp=sd(hp), count=n())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.