-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in check_extension_eventids #72
Comments
@diodon Do you have an example where the check fails? The field in the extension which points to the core can have any name (often just There is a test here which ensures that the It may theoretically be possible to point from the extension to another field in the core instead of |
The function could be also useful to check if that occurrenceID in the MOF files matches with the same field in the occurrence file. I tried to do that kind of check and of course it failed as it checks against the hardcoded I agree that the function is intended to check the eventID but it could be used also for my purpose with the suggested changes. |
I encountered a use case for the most recent comment in this issue. |
Actually, I guess it would be relatively simple to make the analogous function. @pieterprovoost , if you think this would be useful, I'm happy to submit a PR for this function. I can also add some example content to the README.
|
the argument
field
is not used when extracting the matching rows (line 2):rows <- which(!extension[[field]] %in% event$eventID)
The correct form that actually uses the
field
argument, should be:rows <- which(!extension[[field]] %in% event[[field]])
Also, a more informative message could be produced using the function arguments:
Here the full edited function:
The text was updated successfully, but these errors were encountered: