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 fails to read 1-column file #2322

Closed
st-pasha opened this issue Aug 28, 2017 · 4 comments
Closed

fread fails to read 1-column file #2322

st-pasha opened this issue Aug 28, 2017 · 4 comments
Milestone

Comments

@st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Aug 28, 2017

Here's the file:

require(data.table)
fread("default payment next month
0.5524199604988098
0.24839693307876587
0.11578908562660217
0.12682904303073883
0.11796239763498306
0.14982038736343384
0.05930440500378609
0.16200894117355347
0.19789715111255646
0.12607525289058685
0.2425299435853958
0.07361350208520889
0.11026645451784134
0.5387383699417114")

produces

Error in fread("...") : 
  Line 1 has too few fields when detecting types. Use fill=TRUE to pad with NA. 
Expecting 4 fields but found 1: <<      0.5524199604988098>>

CC @arnocandel

@st-pasha st-pasha added this to the v1.10.6 milestone Aug 28, 2017
@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Aug 28, 2017

@st-pasha
Copy link
Contributor Author

@st-pasha st-pasha commented Aug 28, 2017

I can, but I shouldn't have to

@st-pasha st-pasha removed the bug label Aug 28, 2017
@st-pasha
Copy link
Contributor Author

@st-pasha st-pasha commented Aug 28, 2017

This is probably related to #1073

@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Oct 31, 2017

Closed by #2451

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

2 participants