fishbase: Download cleaned FishBase/SeaLifeBase life history data

View source: R/fishbase.R

fishbaseR Documentation

Download cleaned FishBase/SeaLifeBase life history data

Description

Downloads FishBase and SeaLifeBase life history data using rfishbase. The download comes cleaned and the function includes the option to return life history for all of the species included in either the genera or the families of the species requested (this is useful when calculating genus- or family-level life history averages.)

Usage

fishbase(dataset, species, level = "species", cleaned = F, add_taxa = T)

Arguments

dataset

FishBase/SeaLifeBase dataset to download: species, stocks, lw, vonb, ecology, maturity, fecundity, reproduction, morphology, ecosystem, speed

species

A character vector of species scientific names to look up

level

Download life history data for just the provided species ("species") or for all species in the genera ("genus"), families ("family"), or orders ("order") represented in the requested species list.

cleaned

FALSE means you get all of the data and TRUE means you get a cleaned subset of important columns

add_taxa

TRUE means taxonomic information is added to the life history data

Value

A dataframe of life history traits from FishBase/SeaLifeBase

Examples

# Download cleaned FishBase life history data
species <- c("Callinectes sapidus", "Gadus morhua")
lh_data <- fishbase(dataset="species", species=species, level="species", cleaned=T)

cfree14/freeR documentation built on Aug. 22, 2023, 11:12 p.m.