subset_df: Subset data frame for a term

Description Usage Arguments Details Value See Also

View source: R/df_operations_combine_addtopic_subsetmir.R

Description

Subset data frame for a term in a specified column.

Usage

1
subset_df(df, col.filter, filter_for = "Yes")

Arguments

df

Data frame to subset.

col.filter

String. Name of column to filter.

filter_for

String. Term to filter for.

Details

Subset data frame for a term in a specified column. subset_df() filters a data frame for a certain term in a specified column. All rows containing the term in the specified column are kept, while the other rows are silently dropped. Here, col.filter is a string rather than a symbol to facilitate filtering in columns that carry special characters such as '-' in their name.

Value

Data frame, subset for rows where filter_for was present in col.filter.

See Also

indicate_term(), indicate_mir(), extract_snp()

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


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