Unique study names are combined/confused
For example, take the study "Vulture Movements"
getMovebankStudy('Vulture Movements', login = login)
Error in getMovebankID("Vulture Movements", login = login) :
There was more than one study with the name: Vulture Movements
Calls: getMovebankID -> getMovebankID
Looking at all the studies, we can find the similar, but different studies.
# Get all the studies
studies <- getMovebankStudies(login)
studies[grepl('Vulture', studies) & grepl('Movements', studies)]
# [1] "VultureMovements" "Vulture Movements" "VultureMovements2"
getMovebankStudy('VultureMovements', login = login)
# Error in getMovebankID(study, login) :
# There was more than one study with the name: VultureMovements
# Calls: getMovebankStudy -> getMovebankStudy -> getMovebankID -> getMovebankID
getMovebankStudy('Vulture Movements', login = login)
# Error in getMovebankID(study, login) :
# There was more than one study with the name: Vulture Movements
# Calls: getMovebankStudy -> getMovebankStudy -> getMovebankID -> getMovebankID
getMovebankStudy('Vulture Movements2', login = login)
# acknowledgements citation create_ts event_grace_period go_public_date
# 1 NA NA 2017-07-24 16:53:10.760 0 NA
# go_public_license_type grants_used has_quota i_am_owner id is_test license_terms
# 1 NA NA true false 307491863 false NA
# license_type main_location_lat main_location_long name number_of_deployments
# 1 CUSTOM 33.3 -81.67 VultureMovements2 61
# number_of_individuals number_of_tags principal_investigator_address principal_investigator_email
# 1 61 61 NA NA
# principal_investigator_name study_objective study_type suspend_go_public_date suspend_license_terms
# 1 NA NA research NA false
# i_can_see_data there_are_data_which_i_cannot_see i_have_download_access i_am_collaborator
# 1 false true false false
# study_permission timestamp_first_deployed_location timestamp_last_deployed_location
# 1 na 2013-06-18 10:02:00.000 2015-03-02 00:58:00.000
# number_of_deployed_locations taxon_ids sensor_type_ids
# 1 424350 Cathartes aura,Coragyps atratus GPS
getMovebankStudy('Vulture Movements$', login = login)
# [1] acknowledgements citation
# [3] create_ts event_grace_period
# [5] go_public_date go_public_license_type
# [7] grants_used has_quota
# [9] i_am_owner id
# [11] is_test license_terms
# [13] license_type main_location_lat
# [15] main_location_long name
# [17] number_of_deployments number_of_individuals
# [19] number_of_tags principal_investigator_address
# [21] principal_investigator_email principal_investigator_name
# [23] study_objective study_type
# [25] suspend_go_public_date suspend_license_terms
# [27] i_can_see_data there_are_data_which_i_cannot_see
# [29] i_have_download_access i_am_collaborator
# [31] study_permission timestamp_first_deployed_location
# [33] timestamp_last_deployed_location number_of_deployed_locations
# [35] taxon_ids sensor_type_ids
# <0 rows> (or 0-length row.names)
getMovebankStudy('VultureMovements$', login = login)
# [1] acknowledgements citation
# [3] create_ts event_grace_period
# [5] go_public_date go_public_license_type
# [7] grants_used has_quota
# [9] i_am_owner id
# [11] is_test license_terms
# [13] license_type main_location_lat
# [15] main_location_long name
# [17] number_of_deployments number_of_individuals
# [19] number_of_tags principal_investigator_address
# [21] principal_investigator_email principal_investigator_name
# [23] study_objective study_type
# [25] suspend_go_public_date suspend_license_terms
# [27] i_can_see_data there_are_data_which_i_cannot_see
# [29] i_have_download_access i_am_collaborator
# [31] study_permission timestamp_first_deployed_location
# [33] timestamp_last_deployed_location number_of_deployed_locations
# [35] taxon_ids sensor_type_ids
# <0 rows> (or 0-length row.names)
(Sort of) related to #52 (closed)