I have a text file with tens of thousands of rows, with time stamps such as 2010 5 3 0 0
interspersed in between. They are not consistent, but the 2 rows are.
How can I import the 2 columns (trial and the number), while ignoring the rows where I have these timestamps?
a <- read.table('test.txt')
Currently, I get this error:
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 5 did not have 2 elements
Data
Trial 0.214526266019124
Trial 0.213914388985549
Trial 0.213886659329060
Trial 0.213886587273578
2010 5 3 0 0
Trial 0.213886587273578
Trial 0.213256610071994
Trial 0.213232963405967
Trial 0.213232928149832
2011 2 3 0 0
Trial 0.213886587273578
Trial 0.213256610071994
Trial 0.213232963405967
Trial 0.213232928149832
Trial 0.213886587273578
Trial 0.213256610071994
Trial 0.213232963405967
2011 2 6 0 0