Will Jones created ARROW-16239:
----------------------------------

             Summary: [R] $columns on Table and RB should be named
                 Key: ARROW-16239
                 URL: https://issues.apache.org/jira/browse/ARROW-16239
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
    Affects Versions: 7.0.0
            Reporter: Will Jones
             Fix For: 9.0.0


Currently, {{$columns}} method returns columns as a list without names. It 
would be nice if they were named instead, similar to {{as.list}} on a 
{{data.frame}}.

{code:R}
> library(arrow)
> names(record_batch(x = 1, y = 'a')$columns)
NULL
> names(arrow_table(x = 1, y = 'a')$columns)
NULL
> as.list(data.frame(x = 1, y = 'a'))
$x
[1] 1

$y
[1] "a"
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to