Count occurrence of SNPs in a data frame.

count_snp(df, col.snp = SNPs, col.pmid = PMID)

Arguments

df

Data frame containing SNPs and PubMed IDs.

col.snp

Symbol. Column containing SNPs.

col.pmid

Symbol. Column containing PubMed IDs.

Value

Data frame. Data frame containing SNPs and their respective frequency.

Details

Count occurrence of SNPs in a data frame. The count of SNPs is returned as a separate data frame, only listing the SNPs and their respective frequency.

See also