DC_dateNull {bdchecks}R Documentation

Data check dateNull Check if eventDate, year, verbatimEventDate are not NULL

Description

This data check answers: "Is eventDate, year or verbatimEventDate not NULL??" question.
Data check will pass if Date information is present and will fail if No date information.
Dimension of this data check is Completeness and it's flagging type is: FLAG
Example of entries that will pass: year=2000 + eventDate=2000.01.01 + verbatimEventDate=2000.01.01, such data check would return Passed.
Example of entries that will fail: year=NULL + eventDate=NULL + verbatimEventDate=NULL, such data check would return Failed.

Format

An object of class "dataCheck", see dataCheck for details.

samplePassData

Date information is present

sampleFailData

No date information

targetDWCField

eventDate,year,verbatimEventDate

checkCategory

Event

References

None

Examples

performDC(DC = DC_dateNull, DATA = bdchecks::dataBats)

[Package bdchecks version 0.1.7 Index]