Learn R Programming

dtrackr (version 0.4.6)

excluded: Get the dtrackr excluded data record

Description

Get the dtrackr excluded data record

Usage

excluded(.data, simplify = TRUE)

Value

a new dataframe of the excluded data up to this point in the workflow. This dataframe is by default flattened, but if .simplify=FALSE has a nested structure containing records excluded at each part of the pipeline.

Arguments

.data

a dataframe which may be grouped

simplify

return a single summary dataframe of all exclusions.

Examples

Run this code
library(dplyr)
library(dtrackr)
tmp = iris %>% track() %>% capture_exclusions()
tmp %>% exclude_all(
   Petal.Length > 5.8 ~ "{.excluded} long ones",
   Petal.Length < 1.3 ~ "{.excluded} short ones",
   .stage = "petal length exclusion"
) %>% excluded()

Run the code above in your browser using DataLab