Learn R Programming

rfishbase (version 0.2-2)

getRefs: Returns the FishBase reference id numbers matching a query.

Description

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).

Examples

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

Run the code above in your browser using DataLab