Learn R Programming

galah (version 2.1.1)

identify.data_request: Narrow a query by passing taxonomic identifiers

Description

When conducting a search or creating a data query, it is common to identify a known taxon or group of taxa to narrow down the records or results returned. identify() is used to identify taxa you want returned in a search or a data query. Users to pass scientific names or taxonomic identifiers with pipes to provide data only for the biological group of interest.

It is good to use search_taxa() and search_identifiers() first to check that the taxa you provide to galah_identify() return the correct results.

Usage

# S3 method for data_request
identify(x, ...)

# S3 method for metadata_request identify(x, ...)

galah_identify(..., search = NULL)

Value

A tibble containing identified taxa.

Arguments

x

An object of class metadata_request, created using request_metadata()

...

One or more scientific names.

search

[Deprecated] galah_identify() now always does a search to verify search terms; ergo this argument is ignored.

See Also

filter() or geolocate() for other ways to filter a query. You can also use search_taxa() to check that supplied names are being matched correctly on the server-side; see taxonomic_searches for a detailed overview.

Examples

Run this code
if (FALSE) {
# Use `galah_identify()` to narrow your queries
galah_call() |> 
  identify("Eolophus") |>
  count() |>
  collect()

# If you know a valid taxon identifier, use `filter()` instead.
id <- "https://biodiversity.org.au/afd/taxa/009169a9-a916-40ee-866c-669ae0a21c5c"
galah_call() |> 
  filter(lsid == id)  |>
  count() |>
  collect()
}

Run the code above in your browser using DataLab