bufferLines: Buffer File Input

Description Usage Arguments Value Author(s) Examples

Description

Buffer the input of files to increase efficiency

Usage

1
bufferLines(fh, batchSize, lineProcessor)

Arguments

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

Value

No return value

Author(s)

Kevin Horan

Examples

1
2
3
4
5
6
7
	## Not run: 
		fh = file("filename")
		bufferLines(fh,100,function(lines) {
			message("found ",length(lines)," lines")
		})
	
## End(Not run)

girke-lab/ChemmineR-release documentation built on May 17, 2019, 5:26 a.m.