get_common_words: Get common words

Description Usage Arguments

View source: R/get_common_words.R

Description

Get the most frequent words in a group of documents.

Usage

1
get_common_words(prob_mtrx, group_num, n, group_membership = NULL)

Arguments

prob_mtrx

A matrix with (named) columns for words, and rows for either documents or document groups. If each row represents a document, group_membership must be provided.

group_num

An integer corresponding to the document group of interest.

n

An integer specifying how many words should be returned.

group_membership

An integer vector specifying the group membership of documents in prob_mtrx.


dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.