read_lines {LaF} | R Documentation |
Read lines from the file
Description
Reads the specified lines and columns from the data file.
Usage
read_lines(x, ...)
## S4 method for signature 'laf'
read_lines(x, rows, columns = 1:ncol(x), ...)
## S4 method for signature 'laf_column'
read_lines(x, rows, columns = 1:ncol(x), ...)
Arguments
x |
an object the supports the |
... |
passed on to other methods. |
rows |
a numeric vector with the rows that should be read from the file. |
columns |
an integer vector with the columns that should be read in. |
Details
Note that when scanning through the complete file next_block is much faster. Also note that random file access can be slow (and is always much slower than sequential file access), especially for certain file types such as comma separated. Reading is generally faster when the lines that should be read are sorted.
[Package LaF version 0.8.4 Index]