Skip to contents

Estimate observed heterozygosity (H_obs) for each individual (i.e. the frequency of loci that are heterozygous in an individual).

Usage

indiv_het_obs(.x, ...)

# S3 method for class 'tbl_df'
indiv_het_obs(.x, ...)

# S3 method for class 'vctrs_bigSNP'
indiv_het_obs(.x, ...)

Arguments

.x

a vector of class vctrs_bigSNP (usually the genotype column of a gen_tibble object), or a gen_tibble.

...

currently unused.

Value

a vector of heterozygosities, one per individuals in the gen_tibble