Description Usage Arguments Value Examples
For some analysis steps it might be important to have individual tagged texts instead of one large corpus object. This method produces just that.
1 2 3 4 | split_by_doc_id(obj, keepFeatures = TRUE)
## S4 method for signature 'kRp.text'
split_by_doc_id(obj, keepFeatures = TRUE)
|
obj |
An object of class |
keepFeatures |
Either logical, whether to keep all features or drop them, or a character vector of names of features to keep if present. |
A named list of objects of class kRp.text
.
Elements are named by their doc_id
.
1 2 3 4 | ## Not run:
myCorpusList <- split_by_doc_id(myCorpus)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.