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 fill=TRUE fails in this data #1573

Closed
arunsrinivasan opened this issue Mar 6, 2016 · 0 comments
Closed

fread fill=TRUE fails in this data #1573

arunsrinivasan opened this issue Mar 6, 2016 · 0 comments
Assignees
Milestone

Comments

@arunsrinivasan
Copy link
Member

From this SO post

fread("SD1    ST1 SMS1    SD2 ST2 SMS2    SD3 ST3 SMS3    SD4 ST4 SMS4
01-11-2015   00:00:01   323  2015-11-01      00:00:01   551
01-11-2015   00:00:02   289  2015-11-01      00:00:02   618
01-11-2015   01:13:16   253  2015-11-01      01:13:25   511  2015-11-01      01:13:33   489  2015-11-01      01:13:44   870
01-11-2015   00:00:11   986  2015-11-01      00:00:12   602
01-11-2015   00:00:27   48   2015-11-01      00:00:27   391  2015-11-01      00:00:27   429
01-11-2015   00:00:13   750  2015-11-01      00:00:14   255
01-11-2015   00:00:28   773  2015-11-01      00:00:29   114", fill=TRUE)

# Error in fread("~/Downloads/tmp.txt") :
#   Expecting 6 cols, but line 4 contains text after processing all cols. It is very likely that fread's logic in 
# distinguishing one or more fields having embedded sep=' ' and/or (unescaped) '\n' characters within 
# unbalanced unescaped quotes has failed. Please file an issue so that we can figure out if the logic 
# could be improved; also let us know if setting quote='' helped. See section on quotes in ?fread.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant