This is an automated email from the ASF dual-hosted git repository. kszucs pushed a commit to branch maint-6.0.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit ae09c0ef2d3eed24fb5ce4d70298e3ac3aac8667 Author: Nic Crane <[email protected]> AuthorDate: Wed Nov 3 21:05:18 2021 +0000 ARROW-14365: [R] Update README example to reflect new capabilities Closes #11576 from thisisnic/ARROW-14365_readme Authored-by: Nic Crane <[email protected]> Signed-off-by: Nic Crane <[email protected]> --- r/README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/r/README.md b/r/README.md index 3bbcf4b..dcd529d 100644 --- a/r/README.md +++ b/r/README.md @@ -261,8 +261,30 @@ result %>% collect() The `arrow` package works with most single-table `dplyr` verbs, including those that compute aggregates. + +```r +sw %>% + group_by(species) %>% + summarise(mean_height = mean(height, na.rm = TRUE)) %>% + collect() +``` + Additionally, equality joins (e.g. `left_join()`, `inner_join()`) are supported -for joining multiple tables. Window functions (e.g. `ntile()`) are not yet +for joining multiple tables. + +```r +jedi <- data.frame( + name = c("C-3PO", "Luke Skywalker", "Obi-Wan Kenobi"), + jedi = c(FALSE, TRUE, TRUE) +) + +sw %>% + select(1:11) %>% + right_join(jedi) %>% + collect() +``` + +Window functions (e.g. `ntile()`) are not yet supported. Inside `dplyr` verbs, Arrow offers support for many functions and operators, with common functions mapped to their base R and tidyverse equivalents. The [changelog](https://arrow.apache.org/docs/r/news/index.html)
