Learn R Programming

MeSHSim (version 1.4.0)

mheadingSim: Similarity between heading lists

Description

Calculate similarity matrix between two heading lists.

Usage

mheadingSim(headingList1, headingList2, method="SP", frame="node", env=NULL)

Arguments

headingList1, headingList2
two headings or two lists of headings
method
similarity measurment method, see Details for available methods.
frame
available options are node and heading, decide whether using node-based or heading-based methods.
env
the dataset to use.

Value

Semantic similarity matrix between two MeSH heading lists.

Details

Available methods: SP: Shortest Path method, WL: Weighted Link method, WP: Wu and Palmer's method, LC: Leacock and Chodorow's method, Li: Li's method, Lord: Lord's method, Resnik: Resnik's method, Lin: Lin's method, JC: Jiang and Conrath's method.

Examples

Run this code
    headingList1<-c("Body Regions", "Abdomen", "Abdominal Cavity")
    headingList2<-c("Lumbosacral Region", "Body Regions")
    mheadingSim(headingList1,headingList2)

Run the code above in your browser using DataLab