ajinkya-k opened a new issue, #43675:
URL: https://github.com/apache/arrow/issues/43675

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   I was curious how I can pass arrow objects from `R` to `C++` (kind of like 
`R` vectors via `Rcpp::NumericVector`). Here's an example of what I am looking 
for:
   
   Say I have a function `sample_post` in `R` that takes in an `arrow` table 
and some parameters:
   ```
   # R code
   sample_post <- function(arrow_tbl, some_vec, params) {
       # do some clean up
       post_object <- .some_rcpp_fn(arrow_tbl, some_vec, params)
   
       # do some processing on the post object
      return(post_object)
   }
   ```
   
   For a little more concreteness, let's say `some_fn_cpp` is doing `group_by` 
summaries in each iteration of a loop. 
   In `some_fn_rcpp` what should be the type for the first argument that 
corresponds to `arrow_tbl`? 
   
   NOTE: I would prefer using `Rcpp` but not tied to it. I am okay using 
something else. 
   
   
   
   ### Component(s)
   
   R


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to