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

Map stock codes to species names by default in all tables #51

Closed
cboettig opened this issue Jun 16, 2015 · 1 comment
Closed

Map stock codes to species names by default in all tables #51

cboettig opened this issue Jun 16, 2015 · 1 comment
Milestone

Comments

@cboettig
Copy link
Member

As @layamane points out in her review (#46), it probably makes sense for tables to always return species names, since queries are based on species names to begin with.

@cboettig
Copy link
Member Author

All endpoints will return the species name (sciname) in addition to the requested fields (or if no field is included). This should avoid always having to work with speccodes manually.

e.g.

species(common_to_sci("trout"), fields="Vulnerability")
Source: local data frame [9 x 2]

                     sciname Vulnerability
1               Salmo trutta         59.96
2        Oncorhynchus mykiss         36.29
3      Salvelinus fontinalis         43.37
4 Salvelinus alpinus alpinus         74.33
5         Lethrinus miniatus         52.78
6           Salvelinus malma         69.97
7     Plectropomus leopardus         51.04
8  Schizothorax richardsonii         34.78
9          Arripis truttacea         47.96

@cboettig cboettig modified the milestone: 2.1.0 Jul 21, 2015
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