get_shared_mir_df {miRetrieve}R Documentation

Get top miRNA names in common between two topics of a data frame

Description

Get top miRNA names in common between two topics of a data frame.

Usage

get_shared_mir_df(
  df,
  top = 5,
  topic = NULL,
  col.topic = Topic,
  col.mir = miRNA,
  col.pmid = PMID
)

Arguments

df

Data frame containing at least two topics and miRNA names.

top

Integer. Number of top miRNA names to extract for both topics.

topic

String. Vector of strings containing topic names to compare miRNA names for. If topic = NULL, topic defaults to all topic names contained in col.topic in df. topic must only contain two topic names.

col.topic

Symbol. Column containing topic names.

col.mir

Symbol. Column containing miRNA names.

col.pmid

Symbol. Column containing PubMed-IDs.

Details

Get top miRNA names in common between two topics of a data frame. get_shared_mir_df() compares the top miRNA names of two topics in a data frame and returns the miRNA names in common.

Value

Character vector containing miRNA names in common between two topics.

See Also

Other get functions: get_distinct_mir_df(), get_distinct_mir_vec(), get_mir(), get_pmid(), get_shared_mir_vec(), get_snp()


[Package miRetrieve version 1.3.4 Index]