Determine the number of lines in a (large) text file without importing it.
get.nlines(file, n = 1, pattern = NULL, incl.header = FALSE)An integer value.
character of length 1. File path.
integer. Maximum number of lines to read when determining the 'skip' value. Passed to 'get.skip'.
character. Search pattern to find a certain row in 'file'. Passed to 'get.skip'.
logical. Should the file header be included in the count? Length of the header will be determined by 'get.skip'
and the 'pattern' argument. Defaults to 'FALSE'.