The goal of jfbpack is to experiment and learn how to create an R package, hopefully the first of many the author publishes. It contains a single function that gives one of three diversity indices of a given vector.
You can install the development version of jfbpack like so:
remotes::install_github('jfberner/jfbpack)
This is a basic example which shows you how to use the my_diversity function:
library(jfbpack)
com <- c(1,2,3,50,16)
my_diversity(com, 'shannon')
#> [1] 0.878823