[ 
https://issues.apache.org/jira/browse/ARROW-13767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17406580#comment-17406580
 ] 

Joris Van den Bossche commented on ARROW-13767:
-----------------------------------------------

Just a note that there is also a C++ {{Table::Slice}} method that can already 
be directly used for this (not a compute kernel, though, but method on the 
Table). The {{pyarrow.Table.slice}} method uses that 
(https://github.com/apache/arrow/blob/26a34c3a2300620787806c5a8cee08ff30610e3e/python/pyarrow/table.pxi#L1307-L1334).

> [R] Add Arrow methods slice(), slice_head(), slice_tail()
> ---------------------------------------------------------
>
>                 Key: ARROW-13767
>                 URL: https://issues.apache.org/jira/browse/ARROW-13767
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Ian Cook
>            Priority: Major
>
> Implement [{{slice()}}, {{slice_head()}}, and 
> {{slice_tail()}}|https://dplyr.tidyverse.org/reference/slice.html] methods 
> for {{ArrowTabular}}, {{Dataset}}, and {{arrow_dplyr_query}} objects . I 
> believe this should be relatively straightforward, using {{Take()}} to return 
> only the specified rows. We already have a {{head()}} method which I believe 
> we can reuse for {{slice_head()}}.



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

Reply via email to