Skip to content

fread improperly detects sep within quoted fields #2667

Description

@st-pasha
> fread('"abc"\n"1,000"\n"2,000"\n')
   V1 "abc"
1: "1  000"
2: "2  000"
Warning message:
In fread("\"abc\"\n\"1,000\"\n\"2,000\"\n") :
  Detected 1 column names but the data has 2 columns (i.e. an invalid file format). Added 1 extra default column name for the first column which is guessed to be row names or an index. Use setnames() afterwards if this guess is not correct, or fix the file write command that created the file to create a valid file.

Activity

  1. added this to the milestone on Mar 9, 2018
  2. modified the milestones: v1.11.0, on Apr 29, 2018
  3. modified the milestones: 1.12.0, 1.12.2 on Jan 11, 2019
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions