fish_fun: Analyze fish

Description Usage Arguments Value Author(s) Examples

View source: R/fish_fun.R

Description

function returns the most common fish, the rarest fish, the total number of fish, and a histogram if asked

Usage

1
fish_fun(fish, plot = FALSE)

Arguments

fish

the vector of fish

plot

whether to plot histogram or not; default is FALSE

Value

a list containing the most common fish, the rarest fish, the total number of fish, and a histogram if asked

Author(s)

Shuhan Song and Annika Leiby

Examples

1
fish_fun(fish = c("salmon", "salmon", "tuna", "tuna", "tuna", "cod"), plot=TRUE)

Shuhanstack/mypack documentation built on March 18, 2021, 2:37 p.m.