I want to skip the lines of " 0.00000000E+00 0.00000000E+00 0.00000000E+00" in the data without mentioning the line numbers
x <- readLines(my_data)
My data file contains:
[14] " 0.1083300029999990 0.1000000049999983 0.0000000000000000 F F F"
[15] " 0.1361099889999977 0.0333300010000031 0.0610700009999974 F F F"
[16] " 0.2458337085981483 0.1596625983837612 0.1201236938314310 T T T"
[17] " 0.1916699980000018 0.1000000049999983 0.0000000000000000 F F F"
[265] " 0.3567308545901469 0.4771083319525928 0.2819153954253011 T T T"
[266] " 0.7639834308276008 0.6128812478143999 0.2798895352272694 T T T"
[267] " 0.6839739720609472 0.4382156813707780 0.2822545225441857 T T T"
[268] " 0.3990199832359380 0.5541038323827081 0.2788781195980334 T T T"
[269] " 0.3144960847228617 0.4005890268087597 0.2854107441357669 T T T"
[270] " "
[271] " 0.00000000E+00 0.00000000E+00 0.00000000E+00"
[272] " 0.00000000E+00 0.00000000E+00 0.00000000E+00"
[273] " 0.00000000E+00 0.00000000E+00 0.00000000E+00"
[274] " 0.00000000E+00 0.00000000E+00 0.00000000E+00"
I have tried the following way, it skips all the lines. It does not skip the lines from line 271.
skip <- x[-c(grep(0.00000000E+00,x))]
Any suggestion, please.