tsvGenIndex: Produce a simple index of a tsv file.

Description Usage Arguments See Also Examples

Description

This function reads a TSV file and produces an index to the start of each row. The TSV file is required to have a header line and at least one data line. The header line may contain either the same number or one fewer columns than the data lines, which must all contain the same number of columns. The first column of each data line will be indexed.

Usage

1
tsvGenIndex(filename, indexfile)

Arguments

filename

The name (and path) of the file(s) containing the data to index.

indexfile

The name (and path) of the file(s) to which the index will be written. There must be exactly one index file for every filename.

See Also

tsvGetLines

Examples

1
2
3
4
## Not run: 
tsvGenIndex ("data.tsv", "index.tsv")

## End(Not run)

bmbroom/tsvio documentation built on June 5, 2021, 2:31 a.m.