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 2 | tsvGetData(filename, indexfile, rowpatterns, colpatterns, dtype = "",
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. |
rowpatterns |
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. |
colpatterns |
A vector of strings to match against the column headers in the first row |
dtype |
A prototype element that specifies by example the type of matrix to return. The value of the parameter is ignored. Accepted types are string (default), numeric (float), and integer. |
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 and one column for each matched column.
tsvGenIndex
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.