is_heterozygote: Determine heterozygosity

View source: R/is_heterozygote.R

is_heterozygoteR Documentation

Determine heterozygosity

Description

This function will determine the heterozygosity of one or more objects of type locus.

Usage

is_heterozygote(x)

Arguments

x

A code object (single or vector)

Value

A logical flag indicating that there are at least two kinds of alleles present in the locus object.

Note

A haploid or NA locus is never heterozygous.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

loc <- locus( 1:2 )
is_heterozygote( loc )

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.