[R] can not read a table

york8866 yu_york at hotmail.com
Wed Jun 20 16:08:33 CEST 2012


I have a table like the following:  

TABLE NO.  1	
ID	TIME
1325	0
1325	0
.	.
.	.
.	.
TABLE NO.  1	
ID	TIME
1325	0
1325	0
.	.
.	.
.	.
TABLE NO.  1	
ID	TIME
1325	0
1325	0
.	.
.	.
.	.
TABLE NO.  1	
ID	TIME
1325	0
1325	0
.	.
.	.
.	.

I used the following code:
sim <- read.table("sim.tab", skip=1, as.is=T,header=T)
it did not work, as there're rows with characters in between the data. 
Can anyone help me to read the table, while get rid of the character rows in
between the data?
thanks,   

--
View this message in context: http://r.789695.n4.nabble.com/can-not-read-a-table-tp4633971.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list