p_excluded {dtrackr} | R Documentation |
Get the dtrackr excluded data record
Description
Get the dtrackr excluded data record
Usage
p_excluded(.data, simplify = TRUE)
Arguments
.data |
a dataframe which may be grouped |
simplify |
return a single summary dataframe of all exclusions. |
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.
Examples
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()
[Package dtrackr version 0.4.4 Index]