Skip to content

fread stringsAsFactors=0.2 #2025

Description

@mattdowle

For character columns, if uniqueN(column)/nrow < 0.2 then make the column a factor. Generalizing current binary argument to a scale between FALSE (0.0) and TRUE (1.0).
Request came up for onwards model build which switches based on character / factor type.
No change to default FALSE.

Activity

  1. added this to the milestone on Feb 15, 2017
  2. modified the milestones: , on Nov 10, 2017
  3. added 3 commits that reference this issue on Jan 16, 2018
    a4b6c35
    ccdf57c
    6c22aa8
  4. removed this from the milestone on May 10, 2018
  5. added this to the 1.12.4 milestone on May 1, 2019
  6. MichaelChirico commented on Sep 15, 2020

    @MichaelChirico
    Member

    the closing PR is a bit large, @HughParsonage can you confirm this issue was closed at the R level? I seem to recall it was...

  7. HughParsonage commented on Sep 15, 2020

    @HughParsonage
    Member

    Yes:

    if (is.double(stringsAsFactors)) { #2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions