Learn R Programming

validatedb (version 0.1.4)

is_record_based: determine the dimensional structure of values so that it conforms to validate. Only used for values simplify. Works heuristically: get a subset out of db and executes validate::confront on it. Note, this returns also a value for rules that do not work on db!

Description

determine the dimensional structure of values so that it conforms to validate. Only used for values simplify. Works heuristically: get a subset out of db and executes validate::confront on it. Note, this returns also a value for rules that do not work on db!

Usage

is_record_based(tbl, x, n = 5)

Arguments

tbl

A dbplyr::tbl_dbi object.

x

A validate::validator() object with validation rules.

n

integer number of records to be used for checking.

Value

logical whether a validation rule is record based or not.