dc_validation_eventdate_notstandard: Data check validation_eventdate_notstandard Check if...

Description Usage Arguments Format samplePassData sampleFailData targetDWCField checkCategory References Examples

View source: R/dc_validation_eventdate_notstandard.R

Description

This data check answers: "Is eventDate a valid ISO 8601-1:2019 date?" question.
Data check will pass if Given eventDate is a valid ISO 8601-1:2019 date. and will fail if Given eventDate is not a valid ISO 8601-1:2019 date..
Dimension of this data check is and it's flagging type is: FLAG
Example of entries that will pass: eventDate="02021981", such data check would return TRUE.
Example of entries that will fail: eventDate="2018-02-02", such data check would return FALSE.

Usage

1

Arguments

TARGET

a vector of eventDate information. To pass it must be a valid ISO 8601-1:2019 date.

Format

An object of class function to perform a specific data check.

samplePassData

Given eventDate is a valid ISO 8601-1:2019 date.

sampleFailData

Given eventDate is not a valid ISO 8601-1:2019 date.

targetDWCField

eventDate

checkCategory

event

References

None

Examples

1
perform_dc(data_bats, 'validation_eventdate_notstandard')

bd-R/bdchecks documentation built on Oct. 8, 2021, 5:10 p.m.