subset_snp: Subset data frame for specific SNPs

Description Usage Arguments Details Value See Also

View source: R/polymorphism.R

Description

Subset data frame for specific SNPs only.

Usage

1
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 snp.retain must match SNPs in col.snp in df.

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()


JulFriedrich/miRetrieve documentation built on Sept. 20, 2021, 11:37 p.m.