Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fread heuristic predicts wrong column count on a valid file #2196

Closed
st-pasha opened this issue Jun 8, 2017 · 0 comments · Fixed by #2436
Closed

fread heuristic predicts wrong column count on a valid file #2196

st-pasha opened this issue Jun 8, 2017 · 0 comments · Fixed by #2436

Comments

@st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Jun 8, 2017

Minimally reproducible example:

fread('1,2,"3,a"\n4,5,"6,b"', verbose=T)

produces parsing log

Detecting sep ...
  sep==','(ascii 44)  with 2 lines of 3 fields using quote rule 0
  sep==','(ascii 44)  with 2 lines of 4 fields using quote rule 3
Detected 4 columns on line 1. This line is either column names or first data row (first 30 chars): <<1,2,"3,a">>

and the output dataset:

   V1 V2 V3 V4
1:  1  2 "3 a"
2:  4  5 "6 b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants