calculate_simpson_by_group: 'calculate_simpson_by_group'

View source: R/addn_search.R

calculate_simpson_by_groupR Documentation

calculate_simpson_by_group

Description

calculate_simpson_by_group is used to calculate Simpson's index. Which is in the range of 0-1, where the greater the value, the more diverse the population.

Usage

calculate_simpson_by_group(pattern, meta, target)

Arguments

pattern

list of sequences' pattern (profile)

meta

the metadata

target

the target column name

Value

Will return the Simpson's index of the list of patterns.


minSNPs documentation built on May 29, 2024, 2:48 a.m.