Description Usage Arguments Details Value Note Author(s) Examples
View source: R/DTMFromCorpus.R
Obtain a matrix, better known as document-term matrix (DTM), where rows correspond to documents and rows to terms.
1 | DTMFromCorpus(corpus, rowNames)
|
corpus |
a corpus obtained from a bibliographic database. |
rowNames |
a list of row names for the resulting document-term matrix to bring traceability of the names of the articles from the initial database. |
A quick process for obtaining a document-term matrix from a text corpus. The chosen method for weighting this matrix is the binary method, so entries of this matrix are 1
if the i-th
term belongs to the j-th
document and zero
otherwise.
a matrix
object i.e. a document-term matrix, weighted by the binary method.
If rowNames
argument is not provided, article indexes inside document-term matrix are going to be renumbered.
Andres Palacios anfpalacioscl@unal.edu.co
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.