Learn R Programming

dtrackr (version 0.4.6)

p_capture_exclusions: Start capturing exclusions on a tracked dataframe.

Description

Start capturing exclusions on a tracked dataframe.

Usage

p_capture_exclusions(.data, .capture = TRUE)

Value

the .data dataframe with the exclusions flag set (or cleared if .capture=FALSE).

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.

Examples

Run this code
library(dplyr)
library(dtrackr)
tmp = iris %>% track() %>% capture_exclusions()
tmp %>% filter(Species!="versicolor") %>% history()

Run the code above in your browser using DataLab