Skip to content

fread fails to read 1-column file #2322

Description

@st-pasha

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

Activity

  1. added this to the milestone on Aug 28, 2017
  2. MichaelChirico commented on Aug 28, 2017

    @MichaelChirico
    Member
  3. st-pasha commented on Aug 28, 2017

    @st-pasha
    ContributorAuthor

    I can, but I shouldn't have to

  4. st-pasha commented on Aug 28, 2017

    @st-pasha
    ContributorAuthor

    This is probably related to #1073

  5. added a commit that references this issue on Oct 27, 2017
    7357a3a
  6. MichaelChirico commented on Oct 31, 2017

    @MichaelChirico
    Member

    Closed by #2451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions