[R] Extract from a text file

Val valkremk at gmail.com
Tue May 31 02:13:36 CEST 2016


Hi all,

I have a messy text file and from this text file I want extract some
information
here is the text file (out.txt).  One record has tow lines. The mean comes
in the first line and the SE of the mean is on the second line. Here is the
sample of the data.

Mean of weight  group 1, SE of mean  :  72.289037489555276
 11.512956539215610
Average weight of group 2, SE of Mean :  83.940053900595013
  10.198495690144522
group 3 mean , SE of Mean     :                78.310441258245469
 13.015876679555
Mean of weight of group 4, SE of Mean               : 76.967516495101669
 12.1254882985

I want produce the following  table. How do i read it first and then
produce a


Gr1  72.289037489555276   11.512956539215610
Gr2  83.940053900595013   10.198495690144522
Gr3  78.310441258245469   13.015876679555
Gr4  76.967516495101669   12.1254882985


Thank you in advance

	[[alternative HTML version deleted]]



More information about the R-help mailing list