Learn R Programming

sts (version 1.3)

findRepresentativeDocs: A Generic Function to Identify Documents that Load Heavily on a Topic

Description

This is a generic function that extracts documents with the highest prevalence for a given topic.

Usage

findRepresentativeDocs(object, corpus_text, topic, n = 3)

Arguments

object

Model output from sts

corpus_text

vector of text documents, usually contained in the output of prepDocuments

topic

a single topic number

n

number of documents to extract

See Also

findRepresentativeDocs.STS for the method.