[R] read table
Stefan Grosse
singularitaet at gmx.net
Tue Jun 5 18:24:45 CEST 2007
-------- Original Message --------
Subject: [R] read table
From: jiqiang yao <jiqiang123 at yahoo.com>
To: r-help at stat.math.ethz.ch
Date: 05.06.2007 18:17
> Hi,
> I'm a novice of R.
>
> I want to read the following table into R:
> names mpg cyl disp hp drat
> Mazda RX4 21.0 6 160.0 110 3.90
> Mazda RX4 Wag 21.0 6 160.0 110 3.90
>
> The command I used is:
>
>> test <- read.table(file.choose(),header=T)
>>
Does:
test <- read.table(file.choose(),header=T,sep="\t")
work?
More information about the R-help
mailing list