read_lines: Read lines from the file

Description Usage Arguments Details

Description

Reads the specified lines and columns from the data file.

Usage

1
2
3
4
5
6
7
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 read_lines method, such as an laf object.

...

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.


djvanderlaan/LaF documentation built on April 2, 2020, 7:10 a.m.