Learn R Programming

fishflux (version 0.0.1.6)

aspect_ratio: A function to find aspect ratio

Description

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

Run this code
# NOT RUN {
library(fishflux)
library(plyr)
aspect_ratio("Lutjanus griseus")
plyr::ldply(lapply(c("Chlorurus spilurus","Zebrasoma scopas"), aspect_ratio))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab