[Rd] separators in data()

Paul Roebuck roebuck at mdanderson.org
Thu Jun 15 20:37:28 CEST 2006


On Thu, 15 Jun 2006, Gabor Grothendieck wrote:

> Currently, four formats of data files are supported:
>
>    1.  files ending '.R' or '.r' are 'source()'d in, with the R
>        working directory changed temporarily to the directory
>        containing the respective file.
>
>    2.  files ending '.RData' or '.rda' are 'load()'ed.
>
>    3.  files ending '.tab', '.txt' or '.TXT' are read using
>       'read.table(..., header = TRUE)', and hence result in a data
>       frame.
>
>    4.  files ending '.csv' or '.CSV' are read using
>       'read.table(..., header = TRUE, sep = ";")', and also result
>       in a data frame.

As an aside, I have wondered why there is no intrinsic
support for dot-tsv extension (*.tsv) that would trigger
use of read.delim method.

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)



More information about the R-devel mailing list