BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

Check for duplicates in occDetFunc #176

Open AugustT opened 5 years ago

AugustT commented 5 years ago

Follows from: https://github.com/BiologicalRecordsCentre/sparta/issues/171

If the user provides data in the two elements of the list that comes into this function, that are not compatible due to duplicates then the error message does not point clearly to a solution. Use the example in the issue above to add a check that catches this problem and provides the user with a way out.