p_capture_exclusions {dtrackr}R Documentation

Start capturing exclusions on a tracked dataframe.

Description

Start capturing exclusions on a tracked dataframe.

Usage

p_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()

[Package dtrackr version 0.4.4 Index]