| count_snps | R Documentation | 
Count the number/proportion of present/missing sites in each sample
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.
## 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.