You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Will Jones (Jira)" <ji...@apache.org> on 2022/04/19 18:03:00 UTC

[jira] [Created] (ARROW-16239) [R] $columns on Table and RB should be named

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)