dc_validation_occurrencestatus_notstandard: Data check validation_occurrencestatus_notstandard Check if...

Description Usage Arguments Format samplePassData sampleFailData targetDWCField checkCategory References Examples

View source: R/dc_validation_occurrencestatus_notstandard.R

Description

This data check answers: "Is occurrenceStatus within given source authority list?" question.
Data check will pass if The value for occurrenceStatus is present and correct. and will fail if The value for occurrenceStatus is missing or incorrect..
Dimension of this data check is and it's flagging type is: FLAG
Example of entries that will pass: occurrenceStatus=present, such data check would return TRUE.
Example of entries that will fail: occurrenceStatus=observed, such data check would return FALSE.

Usage

1
2
3
4
dc_validation_occurrencestatus_notstandard(
  TARGET = NULL,
  sources = c("present", "absent")
)

Arguments

TARGET

a vector of occurrenceStatus information. To pass it must be within given reference dictionary.

sources

a vector of available sources.

Format

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

samplePassData

The value for occurrenceStatus is present and correct.

sampleFailData

The value for occurrenceStatus is missing or incorrect.

targetDWCField

occurrenceStatus

checkCategory

occurrence

References

None

Examples

1
perform_dc(data_bats, 'validation_occurrencestatus_notstandard')

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