[R] how to read this special form of data

lixxx554 at umn.edu lixxx554 at umn.edu
Fri Mar 26 20:14:09 CET 2010


Dear R listers,

I have a data file looks like the following:

Testing marker:                           s_1
---------------------------------------------

 Allele   df(0) -LnLk(0)   df(T) -LnLk(T)   ChiSq       p
      3 7995 29320.30 7994 29311.85 16.90 4e-05 (2229/8000 probands)

Testing marker:                           s_2
---------------------------------------------

 Allele   df(0) -LnLk(0)   df(T) -LnLk(T)   ChiSq       p
      3 7995 29339.25 7994 29338.31 1.88 0.1702 ( 121/8000 probands)

Testing marker:                           s_3
---------------------------------------------

 Allele   df(0) -LnLk(0)   df(T) -LnLk(T)   ChiSq       p
      3 7995 29340.83 7994 29338.97 3.71 0.0540 (2429/8000 probands)

There are 10,000 testing markers, s_1 to s_10000. I want to read in all the 
'p' values of the testing markers from this file. How can I do this?

Thank you!

xiang



More information about the R-help mailing list