-
Notifications
You must be signed in to change notification settings - Fork 52
Description
There seems to be a discrepancy (missing occurrences) when using institutionKey vs. institutionCode for occ_count() (and presumably also for occ_download?). I noticed that certain types of basisOfRecord are missing when using institutionKey, specifically there appear to be zero counts for MACHINE_OBSERVATION, HUMAN_OBSERVATION, OBSERVATION, and OCCURRENCE (at least for institution USNM 586ee56e-b0fe-4dff-b7f9-aeb104f3308a).
Does institutionKey include all basisOfRecord types? The institutionKey variable is the primary GBIF identifier and presumably should contain all records for a given institution.
MACHINE_OBSERVATION
occ_count(institutionCode="USNM","basisOfRecord"="MACHINE_OBSERVATION")
[1] 37312
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="MACHINE_OBSERVATION")
[1] 0
HUMAN_OBSERVATION
occ_count(institutionCode="USNM","basisOfRecord"="HUMAN_OBSERVATION")
[1] 33102
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="HUMAN_OBSERVATION")
[1] 0
OBSERVATION
occ_count(institutionCode="USNM","basisOfRecord"="OBSERVATION")
[1] 624
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="OBSERVATION")
[1] 0
OCCURRENCE
occ_count(institutionCode="USNM","basisOfRecord"="OCCURRENCE")
[1] 288
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="OCCURRENCE")
[1] 0
MATERIAL_SAMPLE
occ_count(institutionCode="USNM","basisOfRecord"="MATERIAL_SAMPLE")
[1] 301197
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="MATERIAL_SAMPLE")
[1] 443301
PRESERVED_SPECIMEN
occ_count(institutionCode="USNM","basisOfRecord"="PRESERVED_SPECIMEN")
[1] 4831604
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="PRESERVED_SPECIMEN")
[1] 4831870
FOSSIL_SPECIMEN
occ_count(institutionCode="USNM","basisOfRecord"="FOSSIL_SPECIMEN")
[1] 727292
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="FOSSIL_SPECIMEN")
[1] 727292
MATERIAL_CITATION
occ_count(institutionCode="USNM","basisOfRecord"="MATERIAL_CITATION")
[1] 8531
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="MATERIAL_CITATION")
[1] 9390
LIVING_SPECIMEN
occ_count(institutionCode="USNM","basisOfRecord"="LIVING_SPECIMEN")
[1] 0
occ_count(institutionKey=c('586ee56e-b0fe-4dff-b7f9-aeb104f3308a'),"basisOfRecord"="LIVING_SPECIMEN")
[1] 0
I'm using R version 4.4.1 (2024-06-14). Thanks!