Learn R Programming

rfishbase (version 0.2-2)

getDepth: Returns available depth range data

Description

Returns available depth range data

Usage

getDepth(fish.data = NULL, path = NULL)

Arguments

fish.data
the fishbase database or a subset
path
to cached copy of fishbase (optional, defaults to copy in package).

Value

  • a matrix of traits by fish. Returns min-max depth, min-max usual depth

Examples

Run this code
## The distribution of maximum depth in Arctic fishes
data(fishbase)
arctic  <- which_fish("Arctic ", "distribution", fish.data)
traits <- getDepth(fish.data[arctic])
hist(traits[, "deep"])

Run the code above in your browser using DataLab