if (FALSE) {
# Specify a taxon. A valid taxon will return an identifier.
galah_identify("reptilia")
# Specify more than one taxon at a time.
galah_identify("reptilia", "mammalia", "aves", "pisces")
# Use `galah_identify()` to narrow your queries
galah_call() |>
galah_identify("Eolophus") |>
atlas_counts()
# Within a pipe, `identify()` and `galah_identify()` are synonymous.
# hence the following is identical to the previous example:
request_data() |>
identify("Eolophus") |>
count() |>
collect()
# If you know a valid taxon identifier, use `galah_filter()` instead.
# (This was formerly supported by `galah_identify()` with `search = FALSE`)
id <- "https://biodiversity.org.au/afd/taxa/009169a9-a916-40ee-866c-669ae0a21c5c"
galah_call() |>
galah_filter(lsid == id) |>
atlas_counts()
}
Run the code above in your browser using DataLab