File: read-lines.Rd

package info (click to toggle)
fimport 2160.81-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 824 kB
  • sloc: perl: 5,613; makefile: 1
file content (68 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\name{read-lines}


\alias{read.lines}


\title{Read from a text file line by line}


\description{

    Reads from a text file line by line. Wrapper to readLines()
    function.

}


\usage{
read.lines(con=stdin(), n=-1, ok=TRUE, warn=FALSE, encoding="unknown")
}


\arguments{

    \item{con}{
        a connection object or a character string.
    }
    \item{n}{
        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.
    }
    \item{ok}{
        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.
    }
    \item{warn}{
        a logical, warn if a text file is missing a final EOL.
        The default is FALSE, note different from function
        \code{readLines}.
    }
    \item{encoding}{
        a character string, the encoding to be assumed for input
        strings.
    }
}


\value{

    the downloaded text. Same output as readLines() function.

}


\references{

Diethelm Wuertz, Yohan Chalabi, and Andrew Ellis, (2010);
    \emph{Financial Market Data for R/Rmetrics},
    Rmetrics eBook, Rmetrics Association and Finance Online, Zurich,
    www.rmetrics.org.

}


\keyword{programming}