Description Usage Arguments Details Value See Also Examples
This function reads lines that match the given patterns from a TSV file with the assistance of a pre-computed index file to the start of each row.
1 | tsvGetLines(filename, indexfile, patterns, findany = TRUE)
|
filename |
The name (and path) of the file containing the data to index. |
indexfile |
The name (and path) of the file to which the index will be written. |
patterns |
A vector of strings containing the string to match against the index entries. Only lines with keys that exactly match at least one pattern string are returned. |
findany |
If false, all patterns must be matched. If true (default) at least one pattern must match. |
The index file must have been created by tsvGenIndex and the data file must not have changed since the index file was created.
A matrix containing one row for each matched line. Columns are described by the header line.
tsvGenIndex
1 2 3 4 | ## Not run:
tab <- tsvGetLines ("data.tsv", "index.tsv", c("pattern1", "pattern2"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.