fish_counts: fish_counts function

Description Usage Arguments Value Examples

View source: R/fish_counts.R

Description

Returns the most common fish + count, the rarest fish, the total number of fish, and plot if plot = TRUE. Takes vector input of fish species list (or really any list of occurrences)

Usage

1

Arguments

fish

(list)

plot

(default = FALSE)

Value

most common fish, rarest fish, total number of fish, plot (optional)

Examples

1
2
3
> fish_counts(all_fish, plot = FALSE)
salmon   tuna        
2        5     300 

jaleisehall/rainbowtrout documentation built on March 22, 2021, 11:04 p.m.