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
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
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
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
>
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
+
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
6 matches
Mail list logo