Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7823

Have feather::read_feather respect options(stringsAsFactors = FALSE)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • R
    • Linux 64-bit 5.4.15

    Description

      For consistency, it seems like it would be useful to have it behave in a similar manner to read.delim(), read_tsv(), etc...

      Ex:

       

      library(feather)
      library(tidyverse)
      options(stringsAsFactors = FALSE)
      
      write_tsv(head(iris), 'test.tsv')
      write_feather(head(iris), 'test.feather')
      
      head(read.delim('test.tsv', sep='\t')$Species)
      # [1] "setosa" "setosa" "setosa" "setosa" "setosa" "setosa"
      
      head(read_tsv('test.tsv', col_types = cols())$Species)
      # [1] "setosa" "setosa" "setosa" "setosa" "setosa" "setosa"
      
      head(read_feather('test.feather')$Species)
      # [1] setosa setosa setosa setosa setosa setosa
      # Levels: setosa versicolor virginica

       

      Versions:

      • R 3.6.2
      • feather 0.3.5

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              khughitt Keith Hughitt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: