View source: R/trophic_level.R
trophic_level | R Documentation |
A function to find trophic level of a species on either species or genus level using rfishbase. It returns a data frame containing the trophic level and the level at which the trophic level was found (species or genus).
trophic_level(sp)
sp |
A character value containing the species name |
Returns a dataframe with species, trophic level, and taxonomy level.
## Not run: library(fishflux) library(plyr) trophic_level("Lutjanus griseus") ldply(lapply(c("Chlorurus spilurus","Zebrasoma scopas"), trophic_level)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.