Learn R Programming

iotools (version 0.3-5)

input.file: Load a file on the disk

Description

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.

Usage

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

Value

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

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

Author

Taylor Arnold and Simon Urbanek