Skip to content
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

convert_otn_erddap_att() results in text representation of a vector when query_worms_common() results in multiple scientific names #237

Open
chrisholbrook opened this issue Aug 18, 2024 · 0 comments

Comments

@chrisholbrook
Copy link
Collaborator

E.g, query_worms_common() returns three scientific names for "blue shark":

> foo <- query_worms_common("blue shark")
[1] "https://www.marinespecies.org/rest/AphiaRecordsByVernacular/blue%20shark"
> foo
[1] "Isurus oxyrinchus" "Lamna nasus"       "Prionace glauca"  

As a result, the internal data object blue_shark_erddapp_att contains some pretty unruly values in Sci.Name column:

> blue_shark_erddap_att$Tag.Metadata$Sci.Name[1]
[1] c("Isurus oxyrinchus", "Lamna nasus", "Prionace glauca")
Levels: c("Isurus oxyrinchus", "Lamna nasus", "Prionace glauca")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant