Count the number/proportion of present/missing sites in each sample
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.