calcjaccard | R Documentation |
A primary internal function for calculating Jaccard similarity for a given pair of topics.
calcjaccard(topic1, topic2)
topic1 |
a vector with terms most representative of a topic. |
topic2 |
a vector with terms most representative of another topic. |
a value of Jaccard similarity for a pair of topics (numerical).
topicA <- c("tax", "money", "million", "financi", "govern", "spend", "billion")
topicB <- c("iraq", "war", "militari", "iraqi", "troop", "forc", "will")
calcjaccard(topicA, topicB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.