Skip to content

fread improperly detects sep within quoted fields #2667

@st-pasha

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.

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