How can I fix this error?
1
0
Entering edit mode
6.8 years ago
asalari1 • 0
raw <- fread("GSE21222_series_matrix.txt", skip = "!series_matrix_table_begin")

Error in fread("GSE21222_series_matrix.txt", skip = "!series_matrix_table_begin") : 
  Expected sep ('   ') but new line, EOF (or other non printing character) ends field 0 when detecting types from point 10: !series_matrix_table_end
R fread error • 1.9k views
ADD COMMENT
1
Entering edit mode

I have no idea what "!series_matrix_table_begin" is, and it would be lovely if you would put a bit more effort in your question and not just post the error.

ADD REPLY
1
Entering edit mode

The question title should be also more informative.

ADD REPLY
3
Entering edit mode
6.8 years ago
theobroma22 ★ 1.2k

It might be better if you used skip with an integer like 1. This will tell the function to skip the number of lines you declare it to. Also, as the error states, you may want to add in a separator like sep= "\t" if your file is a tab delimited file. Before you do any of this you should read the page on fread for more info on how to use it. https://www.rdocumentation.org/packages/data.table/versions/1.10.4/topics/fread

ADD COMMENT

Login before adding your answer.

Traffic: 2550 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6