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

Support select() for atlas_species() #227

Closed
mjwestgate opened this issue Feb 2, 2024 · 1 comment
Closed

Support select() for atlas_species() #227

mjwestgate opened this issue Feb 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mjwestgate
Copy link
Collaborator

The API powering atlas_species() (occurrences/facets/download) has several TRUE/FALSE arguments that affect which fields are returned. They are:

  • count (return counts)
  • lookup (return taxonomic hierarchy
  • synonym (self-explanatory)
  • lists (presumably species lists that contain this taxon?)

Currently, the default in atlas_species() is for lookup to be TRUE and the others FALSE. However, these could easily be adapted to groups in galah_select() or select.data_request() to allow greater user control.

@mjwestgate mjwestgate added the enhancement New feature or request label Feb 2, 2024
mjwestgate added a commit that referenced this issue Mar 25, 2024
- default is `group = "taxonomy"` for backwards-consistency
- other arguments are added as fields
- when empty `select()` provided, just returns facets (speciesID)
- warns when invalid fields are provided
-tests for the above
@mjwestgate
Copy link
Collaborator Author

Added in v.2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant