Description Usage Arguments Value Source
PreProcess
prepares texts and author information
for use with ExpAgendaVonmon
.
1 2 3 4 |
textsDF |
a data frame containing a column with
texts and a column with author names. Unnecessary if
|
TextsCol |
character string identifying the column
in |
AuthorCol |
character string identifying the column
in either |
IDCol |
a character string with the column uniquely
identifying each text either in |
textsPattern |
character string. Regular expression
pattern identifying the texts in |
authorsDF |
a data frame with author information for
each text in |
removeNumbers |
logical. Whether or not to remove numbers from the texts. |
StopWords |
character vector of stop words to
remove. If |
removeAuthors |
character vector. The names of authors to remove. |
sparse |
numeric for the maximal allowed sparsity.
See |
Returns an object of class ExpAgendaDTMatrix
that
can be used with ExpAgendaVonmon
to
estimated authors' expressed agendas in documents. The
object contains three matrices. doc.term
is a
document term matrix and authors
locates the
authors of the texts in doc.term
. authorID
is used for DocTopics
to return the
documents their their original order.
Feinerer, K. Hornik, and D. Meyer. Text mining infrastructure in R. Journal of Statistical Software, 25(5):1-54, March 2008. http://www.jstatsoft.org/v25/i05.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.