Description Usage Arguments Examples
Add a document to a corpus.
1 2 3 4 | push_document(corpus, document)
## S3 method for class 'corpus'
push_document(corpus, document)
|
corpus |
A corpus, as returned vy |
document |
An object of class |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
init_textanalysis()
# build document
doc1 <- string_document("First document.")
doc2 <- string_document("Second document.")
# length 1
(corpus <- corpus(doc1))
push_document(corpus, doc2)
# length 2
corpus
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.