You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "dgreiss (via GitHub)" <gi...@apache.org> on 2023/07/19 23:13:46 UTC

[GitHub] [arrow] dgreiss commented on issue #33149: [R] dplyr support for rowwise()

dgreiss commented on issue #33149:
URL: https://github.com/apache/arrow/issues/33149#issuecomment-1642882368

   @thisisnic @paleolimbot thanks for the feedback. I was building on this issue #32656 which looks to bring Arrow closer to feature parity with dplyr functions.
   
   The dplyr docs have a few examples of when a user might want to use [rowwise](https://dplyr.tidyverse.org/reference/rowwise.html). 
   
   ```r
   df <- tibble(x = runif(6), y = runif(6), z = runif(6))
   # Compute the mean of x, y, z in each row
   df %>% rowwise() %>% mutate(m = mean(c(x, y, z)))
   # use c_across() to more easily select many variables
   df %>% rowwise() %>% mutate(m = mean(c_across(x:z)))
   
   # Compute the minimum of x and y in each row
   df %>% rowwise() %>% mutate(m = min(c(x, y, z)))
   
   ```
   Notably, `dbplyr` also doesn't implement [rowwise()](https://dplyr.tidyverse.org/reference/rowwise.html).


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org