Learn R Programming

twitterreport (version 0.15.11)

words_closeness: Retrieves a set of words related to a particular word

Description

Retrieves a set of words related to a particular word

Usage

words_closeness(word, jaccard, criter = 0.01, exact = FALSE)

Arguments

word
A character word to analyze
jaccard
A tw_Class_jaccard class object
criter
Minimun number in the index to show
exact
When FALSE shearch via regular expression

Value

A data frame containing the list of words that are related to the specified word

Details

After applying the jaccard_coef function, the resulting object can be analyzed with this function.

Examples

Run this code
## Not run: 
# # Computing the jaccard coefficient
# jaccard <- jaccard_coef(tweets$text)
# 
# # See what words are related with abortion
# words_closeness('abortion',jaccard,.001)
# ## End(Not run)

Run the code above in your browser using DataLab