R: Counts the number of lines in the data file

nbrOfLines.TabularTextFile {R.filesets} | R Documentation

## 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`.

[Package R.filesets version 2.11.0 Index]