p_summarise | R Documentation |
Summarising a data set acts in the normal dplyr
manner to collapse groups
to individual rows. Any columns resulting from the summary can be added to
the history graph. In the history this also joins any stratified branches and
allows you to generate some summary statistics about the un-grouped data. See
dplyr::summarise()
.
p_summarise(.data, ..., .messages = "", .headline = "", .tag = NULL)
the .data dataframe summarised with the history graph updated showing the summarise operation as a new stage
dplyr::summarise()
library(dplyr)
library(dtrackr)
tmp = iris %>% group_by(Species) %>% track()
tmp %>% summarise(avg = mean(Petal.Length), .messages="{avg} length") %>% history()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.