bdchecks (version 0.1.7)

DC_eventDateInFuture: Data check eventDateInFuture Check if event date is not in the future

Description

This data check answers: "?" question. Data check will pass if dwc:eventDate is valid and will fail if dwc:eventDate is in the future. Dimension of this data check is Conformance and it's flagging type is: FLAG Example of entries that will pass: eventDate=2001-01-01, such data check would return Passed. Example of entries that will fail: eventDate=2230-12-31, such data check would return Failed.

Arguments

Format

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

samplePassData

dwc:eventDate is valid

sampleFailData

dwc:eventDate is in the future

targetDWCField

eventDate

checkCategory

Event

References

None

Examples

Run this code
# NOT RUN {
performDC(DC = DC_eventDateInFuture, DATA = bdchecks::dataBats)
# }

Run the code above in your browser using DataCamp Workspace