p_track: Start tracking the dtrackr history graph
Description
Start tracking the dtrackr history graph
Usage
p_track(
.data,
.messages = .defaultMessage(),
.headline = .defaultHeadline(),
.tag = NULL
)
Value
the .data dataframe with additional history graph metadata, to allow
tracking.
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 getOption("dtrackr.default_message")
.
- .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 nrow(.data)
, or {.strata} a summary of the
current group. Defaults to the value of getOption("dtrackr.default_headline")
.
- .tag
if you want the summary data from this step in the future then
give it a name with .tag.
Examples
Run this codelibrary(dplyr)
library(dtrackr)
iris %>% track() %>% history()
Run the code above in your browser using DataLab