bufferLines | R Documentation |
Buffer the input of files to increase efficiency
bufferLines(fh, batchSize, lineProcessor)
fh |
file handle |
batchSize |
How many lines to read in each batch |
lineProcessor |
Each batch of lines will be passed to this function for processing |
No return value
Kevin Horan
## Not run:
fh = file("filename")
bufferLines(fh,100,function(lines) {
message("found ",length(lines)," lines")
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.