input.file efficently reads a file on the disk into R using a formatter function. The function may be mstrsplit, dstrsplit, dstrfw, but can also be a user-defined function.

input.file(file_name, formatter = mstrsplit, ...)

Arguments

file_name

the input filename as a character string

formatter

a function for formatting the input. mstrsplit is used by default.

...

other arguments passed to the formatter

Value

the return type of the formatter function; by default a character matrix.

Author

Taylor Arnold and Simon Urbanek