Description Usage Arguments Value Examples
Count the number/proportion of present/missing sites in each sample
1 | count_snps(data, missing = FALSE, prop = FALSE)
|
data |
EIGENSTRAT data object. |
missing |
Count present SNPs or missing SNPs? |
prop |
Calculate the proportion instead of counts? |
A data.frame object with SNP counts/proportions.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.