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

Description

Returns available depth range data

Examples

## 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"])