Skip to content

Part of Computational-Methods course by Andrea Sánchez-Tapia and Sara Mortara on ICTP/SAIFR 2022. Package only contains one function that computes the following diversity indices: Shannon, Simpson and Inverse-Simpson.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

jfberner/jfbpack

Repository files navigation

jfbpack

Check out the website

R-CMD-check

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.

Installation

You can install the development version of jfbpack like so:

remotes::install_github('jfberner/jfbpack)

Example

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

About

Part of Computational-Methods course by Andrea Sánchez-Tapia and Sara Mortara on ICTP/SAIFR 2022. Package only contains one function that computes the following diversity indices: Shannon, Simpson and Inverse-Simpson.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages