Re: [R] can not read a table

2012-06-20 Thread york8866
Thanks, sorry for my post being a little confusing. Jim's code works, I just need to change the last line to y <- read.table(file = fileName,header=TRUE) then, I got the dataframe that I needed. thank you all forl your help! -- View this message in context: http://r.789695.n4.nabble.com/ca

Re: [R] can not read a table

2012-06-20 Thread Sarah Goslee
On Wed, Jun 20, 2012 at 12:51 PM, york8866 wrote: > it seems it will work, however, the last line of code did not work, so I can > not check the results. > thanks, What does "did not work" mean? Your computer exploded? R evaporated? Your file vanished? It gave an error message that you did not p

Re: [R] can not read a table

2012-06-20 Thread york8866
it seems it will work, however, the last line of code did not work, so I can not check the results. thanks, jholtman wrote > > try this by reformatting the data and then reading back in: > > >> x <- readLines(textConnection("TABLE NO. 1 > + ID TIME > + 13250 > + 13250 > + TABLE

Re: [R] can not read a table

2012-06-20 Thread Petr PIKAL
Hi > > 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 >

Re: [R] can not read a table

2012-06-20 Thread jim holtman
try this by reformatting the data and then reading back in: > x <- readLines(textConnection("TABLE NO. 1 + ID TIME + 13250 + 13250 + TABLE NO. 1 + ID TIME + 13250 + 13250 + TABLE NO. 1 + ID TIME + 13250 + 13250 + TABLE NO. 1 + ID TIME + 13250 +

[R] can not read a table

2012-06-20 Thread york8866
I have a table like the following: TABLE NO. 1 ID TIME 13250 13250 . . . . . . TABLE NO. 1 ID TIME 13250 13250 . . . . . . TABLE NO. 1 ID TIME 13250 13250 . . . . . . TABLE NO. 1 ID