This is unlikely to be useful to an end user and is called automatically by many of the other
functions here. On the off chance you need to copy history metadata from one dataframe to another
Arguments
- .data
a dataframe which may be grouped
- .graph
a history graph list (consisting of nodes, edges, and head) see examples
Value
the .data dataframe with the history graph metadata set to the provided value
Examples
library(dplyr)
library(dtrackr)
mtcars %>% p_set(iris %>% comment("A comment") %>% p_get()) %>% history()
#> dtrackr history:
#> number of flowchart steps: 1 (approx)
#> tags defined: <none>
#> items excluded so far: <not capturing exclusions>
#> last entry / entries:
#> └ "A comment"