Learn R Programming

iotools (version 0.3-5)

line.merge: Merge multiple sources

Description

Read lines for a collection of sources and merges the results to a single output.

Usage

line.merge(sources, target, sep = "|", close = TRUE)

Value

No explicit value is returned. The function is used purely for its side effects on the sources and target.

Arguments

sources

A list or vector of connections which need to be merged

target

A connection object or a character string giving the output of the merge. If a character string a new file connection will be created with the supplied file name.

sep

string specifying the key delimiter. Only the first character is used. Can be "" if the entire string is to be treated as a key.

close

logical. Should the input to sources be closed by the function.

Author

Simon Urbanek