Reads from a text file line by line. Wrapper to readLines() function.
read.lines(con=stdin(), n=-1, ok=TRUE, warn=FALSE, encoding="unknown")
the downloaded text. Same output as readLines() function.
a connection object or a character string.
an integer, the (maximal) number of lines to read. Negative values indicate that one should read up to the end of input on the connection.
a logical, is it OK to reach the end of the connection before n > 0 lines are read? If not, an error will be generated.
a logical, warn if a text file is missing a final EOL.
The default is FALSE, note different from function
readLines
.
a character string, the encoding to be assumed for input strings.
Diethelm Wuertz, Yohan Chalabi, and Andrew Ellis, (2010); Financial Market Data for R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich, www.rmetrics.org.