Returns the FishBase reference id numbers matching a query.

Usage

getRefs(using = c("trophic", "habitat", "lifecycle", "morphology", "diagnostic",
  "distribution", "ScientificName", "Genus", "Family", "Class", "Order", "size"),
      fish.data = NULL, path = NULL)

Arguments

using
which entry type for the search
fish.data
the fishbase database or a subset
path
to cached copy of fishbase (optional, defaults to copy in package).

Description

Returns the FishBase reference id numbers matching a query.

Examples

a <- which_fish("invertebrates", "trophic") refs <- getRefs("trophic", fish.data[a]) toprefs <- sort(table(unlist(refs)), decreasing=TRUE)