is_record_based: determine the dimensional structure of 'values' so that it...

Description Usage Arguments Value

View source: R/is_record_based.R

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

1
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.


validatedb documentation built on Oct. 6, 2021, 5:17 p.m.