Learn R Programming

R.filesets (version 2.15.1)

nbrOfLines.TabularTextFile: Counts the number of lines in the data file

Description

Counts the number of lines in the data file. The count include header rows, comments and more.

Usage

# S3 method for TabularTextFile
nbrOfLines(this, fast=FALSE, ...)

Value

Returns a character

vector.

Arguments

fast

If TRUE, NA is returned for large data files (>1Mb), unless the number of lines has already been counted.

...

Optional arguments passed to countLines.

Author

Henrik Bengtsson

See Also

To count the number of data rows is the data table, use *nbrOfRows(). Internally, countLines is used. For more information see TabularTextFile.