count_lines | R Documentation |
Count the number of lines in a given text file
count_lines(filepath, batch)
filepath |
A path to the text file to read |
batch |
The number of lines to read in at one time |
This function counts the lines of a given text file line by line to prevent reading the entire file into memory at once. Higher batch numbers generally equal quicker read times.
An integer indicating number of lines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.