Number of elements of each line of a file.
nelem(file)
file
Path to file.
The number of elements of each line of a file.
tmpfile <- tempfile() write(1:10, tmpfile, ncolumns = 2) nline(tmpfile)