hetFreq-snpMatrix-method: Heterozygosity

Description Usage Arguments Examples

Description

Heterozygosity an object of class snpMatrix.

Usage

1
2
## S4 method for signature 'snpMatrix'
hetFreq(x, dim = 1)

Arguments

x

an object of class snpMatrix.

dim

a integer for dimension. 1 (default) is for rows (individuals), 2 is for columns (SNPs).

Examples

1
2
3
4
5
# file containing example data for SNP data
gfile <- system.file("extdata/snpdata.csv", package = "qtcat")
snp <- read.snpData(gfile, sep = ",")
hf1 <- hetFreq(snp, 1)
hf2 <- hetFreq(snp, 2)

QTCAT/qtcat documentation built on April 20, 2021, 11:20 p.m.