Learn R Programming

MeSHSim (version 1.4.0)

nodeSim: Similarity between nodes

Description

Calculate similarity between two MeSH nodes.

Usage

nodeSim(node1, node2, method="SP", frame="node", env=NULL)

Arguments

node1, node2
two nodes or two lists of nodes
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 between two MeSH nodes, whose value is between 0 and 1.

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
    nodeSim("B03.440.400.425.340.590", "B03.440.400.425.117.800.200")

Run the code above in your browser using DataLab