Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'TabularTextFile'
nbrOfLines(this, fast=FALSE, ...)

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.

Value

Returns a character vector.

Author(s)

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.


R.filesets

Easy Handling of and Access to Files Organized in Structured Directories

v2.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.