Learn R Programming

KDViz (version 1.3.1)

TermFreqByWord: Search a specific term inside a table of word frequencies

Description

Search a specific term inside a table of word frequencies.

Usage

TermFreqByWord(termFreqTable, word)

Arguments

termFreqTable

a table of words and frequencies.

word

a string you want to search within the table of words and frequencies.

Value

a dataframe containing a list of words which matches with the word on the search, along with its frecuencies.

See Also

A table of words and its frequencies inside a text corpus or a document-term matrix can be obtained through TermFrequency function.

Examples

Run this code
# NOT RUN {
data("KDCorpus")
termFreqTable <- TermFrequency(KDCorpus)

TermFreqByWord(termFreqTable = termFreqTable, word = "graph")
# }

Run the code above in your browser using DataLab