You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/03/10 16:46:00 UTC

[jira] [Updated] (ARROW-11441) [R] Read CSV from character vector

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

Neal Richardson updated ARROW-11441:
------------------------------------
    Description: 
`readr::read_csv()` lets you read in data from a character vector, useful for (e.g.) taking the results of a system call and reading it in as a data.frame. 

{code}
> readr::read_csv(c("a,b", "1,2", "3,4"))
# A tibble: 2 x 2
      a     b
  <dbl> <dbl>
1     1     2
2     3     4
{code}

One solution would be similar to ARROW-9235, perhaps, treating it as a textConnection. 

Another solution is to write to a tempfile.

  was:
`readr::read_csv()` lets you read in data from a character vector, useful for (e.g.) taking the results of a system call and reading it in as a data.frame. 

{code}
> readr::read_csv(c("a,b", "1,2", "3,4"))
# A tibble: 2 x 2
      a     b
  <dbl> <dbl>
1     1     2
2     3     4
{code}

One solution would be similar to ARROW-9235, perhaps, treating it as a textConnection. 


> [R] Read CSV from character vector
> ----------------------------------
>
>                 Key: ARROW-11441
>                 URL: https://issues.apache.org/jira/browse/ARROW-11441
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: R
>            Reporter: Neal Richardson
>            Priority: Major
>             Fix For: 4.0.0
>
>
> `readr::read_csv()` lets you read in data from a character vector, useful for (e.g.) taking the results of a system call and reading it in as a data.frame. 
> {code}
> > readr::read_csv(c("a,b", "1,2", "3,4"))
> # A tibble: 2 x 2
>       a     b
>   <dbl> <dbl>
> 1     1     2
> 2     3     4
> {code}
> One solution would be similar to ARROW-9235, perhaps, treating it as a textConnection. 
> Another solution is to write to a tempfile.



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