Usage
## S3 method for class 'default':
readTable(file, colClasses=NULL, isPatterns=FALSE, defColClass=NA, header=FALSE, skip=0, nrows=-1, rows=NULL, col.names=NULL, check.names=FALSE, path=NULL, ..., stripQuotes=TRUE, method=c("readLines", "intervals"), verbose=FALSE)
Arguments
file
A connection
or a filename. If a filename, the path
specified by path
is added to the front of the
filename. Unopened files are opened and closed at the end. colClasses
Either a named or an unnamed character
vector
.
If unnamed, it specified the column classes just as used by
isPatterns
If TRUE
, the matching of names(colClasses)
to
the read column names is done by regular expressions matching. defColClass
If the column class map specified by a named
colClasses
argument does not match some of the read column
names, the column class is by default set to this class. The
default is to read the columns in an "as is" way.
header
If TRUE
, column names are read from the file. skip
The number of lines (commented or non-commented) to skip
before trying to read the header or alternatively the data table.
nrows
The number of rows to read of the data table.
Ignored if rows
is specified.
rows
An row index vector
specifying which rows of the table
to read, e.g. row one is the row following the header.
Non-existing rows are ignored. Note that rows are returned in
the same col.names
Same as in read.table()
.
check.names
Same as in read.table()
, but default value
is FALSE
here. path
If file
is a filename, this path is added to it,
otherwise ignored.
stripQuotes
If TRUE
, quotes are stripped from values before
being parse.
This argument is only effective when method=="readLines"
. method
If "readLines"
, (readLines())
is used
internally to first only read rows of interest, which is then
passed to read.table()
.
If "intervals"
, contigous intervals are first identified in