Given a file returns each unique word, the number of times that word appeared, and the number of documents that word appeared in. Assumes documents are delimited by newlines. If the file contains only one document then set delim arg to 1.
1 | rcpp_summary(ipath, fileflag)
|
ipath |
A string specifying the path to the input file. |
fileflag |
An int, set to 1 if only one document per file, 0 if each document is on a newline. returns A string vector of the results. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.