Skip to content

colClasses=logical is no longer working #2766

Description

@st-pasha

This appears to be a very similar issue to #2251, which hopefully means that a similar solution can be applied.

> fread("A,B\n1,TRUE", colClasses=c("integer", "logical"))
Error in fread("A,B\n1,TRUE", colClasses = c("integer", "logical")) : 
  Attempt to override column 2 <<B>> of inherent type 'bool8' down to 'bool8' which will lose accuracy. If this was intended, please coerce to the lower type afterwards. Only overrides to a higher type are permitted.

Activity

  1. added this to the milestone on Apr 18, 2018
  2. modified the milestones: v1.11.0, on Apr 29, 2018
  3. mattdowle commented on Jan 11, 2019

    @mattdowle
    Member

    I'm not sure when this was fixed, but it's fixed now. I'll add a test.

    > fread("A,B\n1,TRUE", colClasses=c("integer", "logical"))
           A      B
       <int> <lgcl>
    1:     1   TRUE
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