rcpp_summary: Rcpp Summary

Description Usage Arguments

Description

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.

Usage

1
rcpp_summary(ipath, fileflag)

Arguments

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.


avkoehl/textprocessingDSI documentation built on June 5, 2019, 7:41 p.m.