Return the scientific names, families, classes, or orders of the input data

Usage

fish_names(fish.data = NULL, name = c("ScientificName", "Family", "Class", "Order"),
  path = NULL)

Arguments

name
return the Scientific Name or Family, Class, or Order.
fish.data
the fishbase database fish.data or a subset. Defaults to cached copy
path
to updated copy of the cache; optional.

Value

the names of the matching fish.

Description

Return the scientific names, families, classes, or orders of the input data

Examples

data(fishbase) sex_swap <- which_fish("change sex", using="lifecycle", fish.data) africa <- which_fish("Africa", using="distribution", fish.data) fish_names(fish.data[africa & sex_swap])
[1] "Epinephelus aeneus" "Pseudanthias squamipinnis" [3] "Gobiodon rivulatus"