Skip to content

File containing a single NA value is read as chr instead of logi #2516

@st-pasha

Description

@st-pasha
> str(fread("A\n\n"))
Classes ‘data.table’ and 'data.frame':	0 obs. of  1 variable:
 $ A: chr 
 - attr(*, ".internal.selfref")=<externalptr> 

Expected: a 1x1 data.table of logical type, instead getting a 0x1 data.table of character type.

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