fish_fun: Fish Species Summary

Description Usage Arguments Value

View source: R/fish_fun.R

Description

Returns the most common species, the rarest species, and the total number of fish from a factor of fish names. Optional to also return a histogram.

Usage

1
fish_fun(species, common, rare, total, hist = FALSE)

Arguments

species

Factor of fish names.

common

Most common fish.

rare

Rarest fish.

total

Total number of fish.

hist

Whether to return a histogram with a title of the total number of fish caught. Default is FALSE.

Value

List of common, rare, and total species. Will also return a histogram if hist = TRUE.


camerynbrock/fishwaterpop documentation built on March 14, 2021, 12:46 p.m.