Description Usage Arguments Value Examples
A function to get the total words for each document in the corpus. Useful for things like ldavisCpp for estimating topic proportion in corpus.
1 | doccount_corpus(ipath, ncores, flag = 0)
|
ipath |
A string specifying the path to the input files. |
ncores |
A number specifying the number of cores to use. |
flag |
**optional** A number specifying if documents are delimited by newline (set to 0) or each text file has only one document (1) |
An int vector with num elements = num docs
1 2 3 4 | ## Not run:
doccout_corpus("/path/to/corpus/", 20)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.