Learn R Programming

mmapcharr (version 0.3.1)

nline: Number of lines

Description

Number of lines of a file.

Usage

nline(file)

Value

The number of lines of the file.

Arguments

file

Path to file.

Examples

Run this code
tmpfile <- tempfile()
write(1:5, tmpfile, ncolumns = 1)
nline(tmpfile)

Run the code above in your browser using DataLab