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

1-column file with NAs is read incorrectly #2515

Closed
st-pasha opened this issue Dec 12, 2017 · 0 comments · Fixed by #2623
Closed

1-column file with NAs is read incorrectly #2515

st-pasha opened this issue Dec 12, 2017 · 0 comments · Fixed by #2623
Milestone

Comments

@st-pasha
Copy link
Contributor

st-pasha commented Dec 12, 2017

test0.txt

> data.table::fread("test0.txt")
         x0
  1: 656609
  2: 701231
  3: 733130
  4: 603634
  5: 355257
 ---       
872: 751956
873: 664415
874: 417495
875:  -2368
876: 955199

The file actually contains 999 rows -- all the NA values were silently skipped.

Note that small-size files with similar structures are read correctly:

> data.table::fread("A\n100\n200\n\n400")
     A
1: 100
2: 200
3:  NA
4: 400
@st-pasha st-pasha added this to the v1.10.6 milestone Dec 12, 2017
mattdowle added a commit that referenced this issue Feb 13, 2018
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.

1 participant