Skip to contents

A function to find aspect ratio of a species on either species or genus level using rfishbase. It returns a data frame containing the aspect ratio and the level at which the aspect ratio was found (species or genus).

Usage

aspect_ratio(sp)

Arguments

sp

A character value containing the species name

Value

dataframe with species, aspect ratio and taxonomy level.

Examples

if (FALSE) { # \dontrun{
library(fishflux)
library(dplyr)
aspect_ratio("Lutjanus griseus")
lapply(c("Chlorurus spilurus","Zebrasoma scopas"), aspect_ratio) %>%
  bind_rows(.id = ".id")
} # }