nelem: Size of line

View source: R/file-dim.R

nelemR Documentation

Size of line

Description

Number of elements of each line of a file.

Usage

nelem(file)

Arguments

file

Path to file.

Value

The number of elements of each line of a file.

Examples

tmpfile <- tempfile()
write(1:10, tmpfile, ncolumns = 2)
nline(tmpfile)

mmapcharr documentation built on Nov. 28, 2025, 9:07 a.m.