Skip to content

fread reads in empty fields as logical NA #1159

@eantonya

Description

@eantonya

The following results in very unpleasant behavior if you read and subsequently write a csv:

fread('a,b\n1,')
#   a  b
#1: 1 NA

Second column is read in as a logical column, which means empty values get converted to NA. Those columns should instead be read in as character.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions