ungroup.trackr_df | R Documentation |
Un-grouping a data set logically combines the different arms. In the history
this joins any stratified branches and acts as a specific type of status()
,
allowing you to generate some summary statistics about the un-grouped data.
See dplyr::ungroup()
.
## S3 method for class 'trackr_df'
ungroup(
x,
...,
.messages = .defaultMessage(),
.headline = .defaultHeadline(),
.tag = NULL
)
x |
A |
... |
variables to remove from the grouping. |
.messages |
a set of glue specs. The glue code can use any any global variable, or {.count}. the default is "total {.count} items" |
.headline |
a headline glue spec. The glue code can use {.count} and {.strata}. |
.tag |
if you want the summary data from this step in the future then give it a name with .tag. |
the .data dataframe but ungrouped with the history graph updated showing the ungroup operation as a new stage.
dplyr::ungroup()
library(dplyr)
library(dtrackr)
tmp = iris %>% group_by(Species) %>% comment("A test")
tmp %>% ungroup(.messages="{.count} items in combined") %>% history()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.