powered by
Function for finding the word (term) of highest frequency within clusters.
cluster_words(wordscluster, n)
an R object containing the output of wordscluster()
a numeric vector containing cluster numbers
a list containing cluster and its highest frequency word
wordscluster
# NOT RUN { test = cluster_words(wordscluster, 5) ## wordscluster is an R object of wordscluster ## 5 is number of cluster # }
Run the code above in your browser using DataLab