Learn R Programming

rfishbase (version 0.2-2)

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

Description

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.

Examples

Run this code
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])

Run the code above in your browser using DataLab