[
https://issues.apache.org/jira/browse/ARROW-13165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450688#comment-17450688
]
Neal Richardson commented on ARROW-13165:
-----------------------------------------
> you can create a `StructArray` using `Array$create()`
True, if you have a data.frame. But not if you have Arrays. Here's an
illustration:
{code}
> a <- Array$create(1:5)
> b <- Array$create(6:10)
# I can make a RecordBatch fine:
> record_batch(a = a, b = b)
RecordBatch
5 rows x 2 columns
$a <int32>
$b <int32>
# But how can I make a StructArray?
> Array$create(a = a, b = b)
Error in Array$create(a = a, b = b) : unused arguments (a = a, b = b)
{code}
> [R] Add bindings for ProjectOptions
> -----------------------------------
>
> Key: ARROW-13165
> URL: https://issues.apache.org/jira/browse/ARROW-13165
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Ian Cook
> Assignee: Dragoș Moldovan-Grünfeld
> Priority: Major
>
> The {{project}} kernel creates a column of struct (equivalent to a column of
> named lists in R). Add to {{make_compute_options}} in {{compute.cpp}} so we
> can pass {{ProjectOptions}} to the {{project}} kernel.
> One practical application of the {{project}} kernel is to create a binding
> for the stringr function {{str_locate}} which returns a column of named lists.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)