new_check: Create new check

Description Usage Arguments

View source: R/checks.R

Description

Function takes parameters and returns data structure that represents check and can de included into group and then executed

Usage

1
new_check(description, severity, function_name, ...)

Arguments

description

check description expressed in understandable way. it should give good idea of a purpose of the check. Description should define condition that data must meet. Like "Country must be always filled". Good practice is to a) start with name of subject of check b) give clear and concise criteria c) specify when it is applicable (if not always)

severity

check severity, can be chosen from 'severity' list attached to package

function_name

validation function name - text or function (without parameters)

...

other parameters that will be passed to validation function like column, udf, etc.


EvgenyPetrovsky/deeque documentation built on Jan. 23, 2020, 3:38 a.m.