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

Description Usage Arguments Details Value Examples

View source: R/text_processing.R

Description

Retrieves a set of words related to a particular word

Usage

1
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

Details

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

Value

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

Examples

1
2
3
4
5
6
7
8
## 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)

gvegayon/twitterreport documentation built on May 17, 2019, 9:30 a.m.