hill_12I: Calculate Hill numbers of order 1, 2, and Inf from a matrix

View source: R/diversity.R

hill_12IR Documentation

Calculate Hill numbers of order 1, 2, and Inf from a matrix

Description

For both Hill 1 and 2, a maximally variant site will have a value of n (which is 4 for the 4 possible nucleotides), and maximally invariant site is 1.

Usage

hill_12I(x)

Arguments

x

a matrix with nrows samples and ncol counts

Details

log(N_1) is entropy, log(N_2) is inverse Simpson's

Value

a data.frame with Hill's N_1, N_2, N_Inf for each sample


jeffkimbrel/MappgeneSummary documentation built on Dec. 24, 2024, 3:12 p.m.