[R] read table

jiqiang yao jiqiang123 at yahoo.com
Tue Jun 5 18:17:51 CEST 2007


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)

The result is:
Error in read.table(file.choose(), header = T) : 
        more columns than column names

Can anybody tells me what is wrong?



More information about the R-help mailing list