Start capturing exclusions on a tracked dataframe.
Usage
capture_exclusions(.data, .capture = TRUE)
Arguments
- .data
a tracked dataframe
- .capture
Should we capture exclusions (things removed from the data
set). This is useful for debugging data issues but comes at a significant
cost. Defaults to the value of getOption("dtrackr.exclusions")
or
FALSE
.
Value
the .data dataframe with the exclusions flag set (or cleared if
.capture=FALSE
).
Examples
library(dplyr)
library(dtrackr)
tmp = iris %>% track() %>% capture_exclusions()
tmp %>% filter(Species!="versicolor") %>% history()
#> dtrackr history:
#> number of flowchart steps: 1 (approx)
#> tags defined: <none>
#> items excluded so far: 50
#> last entry / entries:
#> └ "150 items"