[ https://issues.apache.org/jira/browse/ARROW-13767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417808#comment-17417808 ]
Joris Van den Bossche commented on ARROW-13767: ----------------------------------------------- bq. since dataset scans are no longer in deterministic order What do you mean exactly? (did something change recently? I thought the scans _can_ have deterministic order if needed) For example the Scanner has a {{Head}} method to returns the first n rows (I would suppose this is deterministic?) > [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 > Labels: query-engine > Fix For: 7.0.0 > > > 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)