subset_snp.RdSubset data frame for specific SNPs only.
subset_snp(df, snp.retain, col.snp = SNPs)
| df | Data frame containing SNPs. |
|---|---|
| snp.retain | Character vector. Vector specifying which SNPs to keep.
SNPs in |
| col.snp | Symbol. Column containing SNPs. |
Data frame containing only specified SNPs.
If no SNP in snp.retain matches a SNP in col.snp, subset_snp() stops
with a warning saying "No SNP in 'snp.retain' matches a SNP in 'col.snp'.
Could not filter for SNP.".
Subset data frame for specific SNPs only.
extract_snp(),
count_snp(),
get_snp()
Other subset functions:
subset_df(),
subset_mir_threshold(),
subset_mir(),
subset_research(),
subset_review(),
subset_year()