| subset_snp {miRetrieve} | R Documentation |
Subset data frame for specific SNPs
Description
Subset data frame for specific SNPs only.
Usage
subset_snp(df, snp.retain, col.snp = SNPs)
Arguments
df |
Data frame containing SNPs. |
snp.retain |
Character vector. Vector specifying which SNPs to keep.
SNPs in |
col.snp |
Symbol. Column containing SNPs. |
Details
Subset data frame for specific SNPs only.
Value
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.".
See Also
extract_snp(),
count_snp(),
get_snp()
Other subset functions:
subset_df(),
subset_mir_threshold(),
subset_mir(),
subset_research(),
subset_review(),
subset_year()
[Package miRetrieve version 1.3.4 Index]