snpgdsSampMissRate {SNPRelate} | R Documentation

## Missing Rate of Samples

### Description

Return the missing fraction for each sample

### Usage

    snpgdsSampMissRate(gdsobj, sample.id=NULL, snp.id=NULL, with.id=FALSE)

### Arguments

`gdsobj` | an object of class `SNPGDSFileClass`, a SNP GDS file
`sample.id` | a vector of sample id specifying selected samples; if `NULL`, all samples will be used
`snp.id` | a vector of snp id specifying selected SNPs; if `NULL`, all SNPs will be used
`with.id` | if `TRUE`, the returned value with sample id

### Value

A vector of numeric values.

### Author(s)

Xiuwen Zheng

### See Also

`snpgdsSNPRateFreq`

### Examples

    # open an example dataset (HapMap)
    genofile <- snpgdsOpen(snpgdsExampleFileName())

    RV <- snpgdsSampMissRate(genofile)
    summary(RV)

    # close the genotype file
    snpgdsClose(genofile)

[Package SNPRelate version 1.20.1 Index]