naFreq-snpMatrix-method: NA frequency

Description Usage Arguments Examples

Description

NA frequency in an object of class snpMatrix.

Usage

1
2
## S4 method for signature 'snpMatrix'
naFreq(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 = ",")
na1 <- naFreq(snp, 1)
na2 <- naFreq(snp, 2)

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