DC_coordinatePrecisionMismatch {bdchecks}R Documentation

Data check coordinatePrecisionMismatch Check if decimal values given in decimalLatitude and decimalLongitude does agree witha a decimal representation of the precision of the coordinates (coordinatePrecision)

Description

This data check answers: "Is decimal number in langitude and latitude not smaller than a given decimal precision??" question.
Data check will pass if The number of decimal places of latitude (dwc:decimalLatitude) and longitude (dwc:decimalLongitude) is in agreement with the supplied coordinate precision (dwc:coordinatePrecision) and will fail if The number of decimal places of latitude (dwc:decimalLatitude) or longitude (dwc:decimalLongitude) is not in agreement with the supplied coordinate precision (dwc:coordinatePrecision).
Dimension of this data check is Consistency and it's flagging type is: FLAG
Example of entries that will pass: coordinatePrecision=1e-5, decimalLatitude=-35.123, such data check would return Passed.
Example of entries that will fail: coordinatePrecision=0.5, decimalLatitude=-35.123456, such data check would return Failed.

Format

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

samplePassData

The number of decimal places of latitude (dwc:decimalLatitude) and longitude (dwc:decimalLongitude) is in agreement with the supplied coordinate precision (dwc:coordinatePrecision)

sampleFailData

The number of decimal places of latitude (dwc:decimalLatitude) or longitude (dwc:decimalLongitude) is not in agreement with the supplied coordinate precision (dwc:coordinatePrecision)

targetDWCField

decimalLatitude,decimalLongitude

checkCategory

Location

References

None

Examples

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

[Package bdchecks version 0.1.7 Index]