Closed daxkellie closed 4 months ago
Fixed as of v2.0.1 & commit d0f193123e190b6e00fadf3f26a420a328c41898, search_all(lists)
now outputs species_list_uid
as the list ID column name
library(galah)
# list IDs are now under `species_list_uid` column
search_all(lists, "New South Wales") |> select(1:3)
#> # A tibble: 2 × 3
#> species_list_uid listName listType
#> <chr> <chr> <chr>
#> 1 dr650 New South Wales : Conservation Status CONSERVATION_LIST
#> 2 dr487 New South Wales Sensitive Species List SENSITIVE_LIST
# This matches the field name used by `filter()`
galah_config(email = "your-email-here")
galah_call() |>
filter(cl10923 == "YASS VALLEY COUNCIL",
year == 2023,
species_list_uid == dr650) |> # `filter()` also uses `species_list_uid`
atlas_species()
#> # A tibble: 21 × 10
#> species_guid species author kingdom phylum class order family genus
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 https://biodiversity.… Calloc… (Gran… Animal… Chord… Aves Psit… Cacat… Call…
#> 2 https://biodiversity.… Petroi… (Less… Animal… Chord… Aves Pass… Petro… Petr…
#> 3 https://biodiversity.… Stagon… (Shaw… Animal… Chord… Aves Pass… Estri… Stag…
#> 4 https://biodiversity.… Petroi… Gould… Animal… Chord… Aves Pass… Petro… Petr…
#> 5 https://biodiversity.… Daphoe… (Lath… Animal… Chord… Aves Pass… Neosi… Daph…
#> 6 https://biodiversity.… Hieraa… (Goul… Animal… Chord… Aves Acci… Accip… Hier…
#> 7 https://id.biodiversi… Ammobi… Benth. Plantae Charo… Equi… Aste… Aster… Ammo…
#> 8 https://biodiversity.… Ninox … (Goul… Animal… Chord… Aves Stri… Strig… Ninox
#> 9 https://id.biodiversi… Eucaly… Siebe… Plantae Charo… Equi… Myrt… Myrta… Euca…
#> 10 https://biodiversity.… Polyte… (Desm… Animal… Chord… Aves Psit… Psitt… Poly…
#> # ℹ 11 more rows
#> # ℹ 1 more variable: vernacular_name <chr>
Created on 2024-02-16 with reprex v2.0.2
At the moment, it is opaque how to use lists in a galah query. Despite the lists IDs being held in the field
dataResourceUid
, you need to supply the listid
togalah_filter()
with the fieldspecies_list_uid
.Created on 2023-11-27 with reprex v2.0.2
Is it possible to either supply a message when using
search_all(lists)
andshow_all(lists)
of how to supply this information togalah_filter()
? For example:Alternatively, would it be bad to replace the column name
dataResourceUid
tospecies_list_uid
insearch_all(lists)
/show_all(lists)
output?