Description Usage Arguments Value Examples
A wrapper around the rcpp_summary function. Given a file, get the unique words, their counts, and the number of documents they appeared in. The flag argument specifies if there are more than one document per text file. Set to 0 if that is the case and the documents are delimited by newlines. Set to 1 if there is only one document in the file.
1 | summary_file(ipath, flag = 0)
|
ipath |
A string specifying the path to the file. |
flag |
**optional** A number, set to 1 if only one document per text file. |
A dataframe object with term, freq, doccount fields.
1 2 3 4 5 | ## Not run:
summary_file("10documents.txt")
summary_file("onedocument.txt", 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.