Skip to content

Commit

Permalink
added only_sum_freq
Browse files Browse the repository at this point in the history
  • Loading branch information
jenast committed Oct 23, 2023
1 parent 221954a commit 4baf72e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/calc_shannon.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#' @param community Community.
#' @param no_asv_per_species Number of genetic variants per species.
#' @param augment_community Build up community by from species and number of occurences (TRUE), or use raw occurrences (FALSE)
#' @param only_sum_freq Only sum the frequencies together, instead of calculating Shannon information.
#' @param Hill Return as first order Hill number. Boolean
#'
#' @return Shannon diversity.
Expand Down Expand Up @@ -34,6 +35,7 @@
calc_shannon <- function(community,
no_asv_per_species,
augment_community = TRUE,
only_sum_freq = FALSE,
Hill = TRUE) {
if(augment_community){
community_aug <- rep(community, no_asv_per_species)
Expand Down
3 changes: 3 additions & 0 deletions man/calc_shannon.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4baf72e

Please sign in to comment.