subset_mir {miRetrieve}R Documentation

Subset data frame for specific miRNA names

Description

Subset data frame for specific miRNA names only.

Usage

subset_mir(df, mir.retain, col.mir = miRNA)

Arguments

df

Data frame containing a miRNA names.

mir.retain

Character vector. Vector specifying which miRNA names to keep. miRNA names in mir.retain must match miRNA names in col.mir in df.

col.mir

Symbol. Column containing miRNA names.

Details

Subset data frame for specific miRNA names only.

Value

Data frame containing only specified miRNA names. If no miRNA name in mir.retain matches a miRNA name in col.mir, subset_mir() stops with a warning saying "No miRNA name in 'mir.retain' matches a miRNA name in 'col.mir'. Could not filter for miRNA name.".

See Also

get_mir(), subset_mir_threshold()

Other subset functions: subset_df(), subset_mir_threshold(), subset_research(), subset_review(), subset_snp(), subset_year()


[Package miRetrieve version 1.3.4 Index]