get_clean_rows {recorder}R Documentation

Get Clean Rows

Description

Get Clean Rows

Usage

get_clean_rows(playback, ignore_tests = NULL, ignore_cols = NULL,
  ignore_combinations = NULL)

Arguments

playback

data.playback to extract failed tests from.

ignore_tests

character ignore test results from tests with these names.

ignore_cols

character ignore test results from tests of columns with these names.

ignore_combinations

list ignore test results from specific tests of specific columns.

Details

Look up the descriptions and other meta data of the available validation tests with get_tests_meta_data.

Value

logical with the same length as the number of rows in new data. The value is TRUE, if the row passed all tests, otherwise FALSE.

Examples

# record tape from `iris`.
tape <- record(iris)
# load data.
data(iris_newdata)
# validate new data by playing new tape on it.
playback <- play(tape, iris_newdata)

get_clean_rows(playback)
get_clean_rows(playback, ignore_tests = "outside_range")
get_clean_rows(playback, ignore_cols = "junk")
get_clean_rows(playback, ignore_combinations = list(outside_range = "Sepal.Width"))

[Package recorder version 0.8.2 Index]