# NOT RUN {
# Create a simple table with a
# column of numerical values
tbl <-
dplyr::tibble(a = c(5, 7, 8, 5))
# Create 2 simple validation steps
# that test whether values within
# column `a`
agent <-
create_agent(tbl = tbl) %>%
col_vals_between(vars(a), 4, 6) %>%
col_vals_lte(vars(a), 7) %>%
interrogate(
extract_failed = TRUE,
get_first_n = 10
)
# Get row sample data for those rows
# in `tbl` that did not pass the first
# validation step (`col_vals_between`)
agent %>% get_data_extracts(i = 1)
# }
Run the code above in your browser using DataLab