我有一个输出文本文件,看起来像这样
2014 1 11 0.0000000E+00 0.3434822
0.0000000E+00 0.7726533 0.9574943 -1.550000 9.9998499E-05
0.5000000 0.9999800 0.0000000E+00 1063.578 0.0000000E+00
0.0000000E+00
-108.9834 9.3596420E-05 5.5007441E-03 0.0000000E+00 9.9998499E-05
0.2500000 -27.04700 -18.10586 6.4020833E-06 0.0000000E+00
0.0000000E+00 -108.9834 9.3609699E-05 -0.3065675 -0.5260010
9.9998499E-05 6.4020833E-06 0.0000000E+00 -63.42108 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.8130355 0.1201915 0.2232908
0.0000000E+00 0.0000000E+00 1.000000 1.000000 0.0000000E+00
0.0000000E+00 -63.40063 0.0000000E+00 0.5000000 20.24322
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00
-7.2759576E-12
2014 1 11 1.000000 0.3434822
0.0000000E+00 0.7719470 0.9573622 -1.720000 0.0000000E+00
0.5800000 0.9999800 0.0000000E+00 1060.771 0.0000000E+00
0.0000000E+00
-201.3443 8.9306879E-05 1.0951841E-02 0.0000000E+00 0.0000000E+00
0.2519612 -20.23699 -12.15771 4.2895390E-06 ...
.
.
.
但是对于使用它,例如在Excel中我需要看起来像这样的东西:
2014 1 11 0.000000 0.3434822 ...
2014 1 11 1.000000 0.3434822 ...
.
.
.
我在R中尝试了grep()表达式,但无法使其工作。