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

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
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