romainfrancois opened a new pull request #8125:
URL: https://github.com/apache/arrow/pull/8125


   R follow up from #7272
   
   The current `$select()` uses a more familiar (though more expensive) 
tidyselect interface: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   
   tab <- Table$create(x1 = 1:2, x2 = 3:4, y = 5:6)
   # lower level 0-based indices
   tab$SelectColumns(0:1)
   #> Table
   #> 2 rows x 2 columns
   #> $x1 <int32>
   #> $x2 <int32>
   
   # higher level tidyselect based
   tab$select(starts_with("x"))
   #> Table
   #> 2 rows x 2 columns
   #> $x1 <int32>
   #> $x2 <int32>
   ```
   
   <sup>Created on 2020-09-07 by the [reprex 
package](https://reprex.tidyverse.org) (v0.3.0.9001)</sup>
   
   Do we want both ? `$select()` is used e.g. by the `read_csv(col_select=)` 
argument. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to