fishbase | R Documentation |
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.)
fishbase(dataset, species, level = "species", cleaned = F, add_taxa = T)
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 |
A dataframe of life history traits from FishBase/SeaLifeBase
# Download cleaned FishBase life history data
species <- c("Callinectes sapidus", "Gadus morhua")
lh_data <- fishbase(dataset="species", species=species, level="species", cleaned=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.