Learn R Programming

readmoRe (version 0.2-15)

get.sep: Determine field delimiter in text files

Description

Determine field delimiter in text files

Usage

get.sep(file, n = 1, pattern)

Value

If successful, the filed delimiter. If more than on of the possible delimiters is found, an error is returned.

Arguments

file

character. Path name of a text file.

n

integer. Number of lines to be read by readLines. Defaults to 1.

pattern

character. Search pattern to find a specific line for determining the delimiter.

See Also