| chunk.map | R Documentation | 
A wrapper around the core iotools functions to easily apply a function over chunks of a large file. Results can be either written to a file or returned as an internal list.
chunk.map(input, output = NULL, formatter = .default.formatter,
          FUN, key.sep = NULL, max.line = 65536L,
          max.size = 33554432L, output.sep = ",", output.nsep = "\t",
          output.keys = FALSE, skip = 0L, ...)
| input | an input connection or character vector describing a local file. | 
| output | an optional output connection or character vector describing a local file.
If  | 
| formatter | a function that takes raw input and produces the input given to  | 
| FUN | a user provided function to map over the chunks. The result of FUN is either
wrapper in a list item, when  | 
| key.sep | optional key separator given to  | 
| max.line | maximum number of lines given to  | 
| max.size | maximum size of a block as given to  | 
| output.sep | single character giving the field separator in the output. | 
| output.nsep | single character giving the key separator in the output. | 
| output.keys | logical. Whether as.output should interpret row names as keys. | 
| skip | integer giving the number of lines to strip off the input before reading. Useful when the input contains a row a column headers | 
| ... | additional parameters to pass to  | 
A list of results when output is NULL; otherwise no output is returned.
Taylor Arnold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.