count_snps: Count the number/proportion of present/missing sites in each...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Count the number/proportion of present/missing sites in each sample

Usage

1

Arguments

data

EIGENSTRAT data object.

missing

Count present SNPs or missing SNPs?

prop

Calculate the proportion instead of counts?

Value

A data.frame object with SNP counts/proportions.

Examples

1
2
3
4
5
6
7
8
9
## Not run: snps <- eigenstrat(download_data(dirname = tempdir()))

present_count <- count_snps(snps)
missing_count <- count_snps(snps, missing = TRUE)

present_proportion <- count_snps(snps, prop = TRUE)
missing_proportion <- count_snps(snps, missing = TRUE, prop = TRUE)

## End(Not run)

admixr documentation built on July 8, 2020, 6:19 p.m.