You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/02/11 21:21:01 UTC

[jira] [Resolved] (ARROW-7823) Have feather::read_feather respect options(stringsAsFactors = FALSE)

     [ https://issues.apache.org/jira/browse/ARROW-7823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neal Richardson resolved ARROW-7823.
------------------------------------
    Resolution: Duplicate

Whatever doc changes we do can be done in ARROW-7825

> Have feather::read_feather respect options(stringsAsFactors = FALSE)
> --------------------------------------------------------------------
>
>                 Key: ARROW-7823
>                 URL: https://issues.apache.org/jira/browse/ARROW-7823
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>         Environment: Linux 64-bit 5.4.15
>            Reporter: Keith Hughitt
>            Priority: Major
>              Labels: feather
>
> For consistency, it seems like it would be useful to have it behave in a similar manner to read.delim(), read_tsv(), etc...
> *Ex:*
>  
> {code:java}
> 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{code}
>  
> Versions:
>  * R 3.6.2
>  - feather 0.3.5
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)