p_track {dtrackr} | R Documentation |
Start tracking the dtrackr history graph
Description
Start tracking the dtrackr history graph
Usage
p_track(
.data,
.messages = .defaultMessage(),
.headline = .defaultHeadline(),
.tag = NULL
)
Arguments
.data |
a dataframe which may be grouped |
.messages |
a character vector of glue specifications. A glue
specification can refer to any grouping variables of .data, or any
variables defined in the calling environment, the {.total} variable which
is the count of all rows, the {.count} variable which is the count of
rows in the current group and the {.strata} which describes the current
group. Defaults to the value of |
.headline |
a glue specification which can refer to grouping variables
of .data, or any variables defined in the calling environment, or the
{.total} variable which is |
.tag |
if you want the summary data from this step in the future then give it a name with .tag. |
Value
the .data dataframe with additional history graph metadata, to allow tracking.
Examples
library(dplyr)
library(dtrackr)
iris %>% track() %>% history()