rcpp_join: Rcpp Join

Description Usage Arguments

Description

Given an input directory merge all the files into one large file. Expects each file to have multiple documents each delimited by newline. If that is not the case, set the newline argument to 1 to ensure each document is delimited by newlines.

Usage

1
rcpp_join(idir, ofilename, newline)

Arguments

idir

A string specifying the path to the input directory.

ofilename

A string specifying the path to the outputfile.

newline

An int, if set to 0 files are just concatenated as they are if set to 1 the files have their newlines replaced by spaces and when they are merged together, a newline is added between them. Returns number of files that were joined.


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