GitHub user shivaram opened a pull request:

    https://github.com/apache/spark/pull/6005

    [SPARK-7231] [SPARKR] Changes to make SparkR DataFrame dplyr friendly.

    Changes include
    1. Rename sortDF to arrange
    2. Add new aliases `group_by` and `sample_frac`, `summarize`
    3. Add more user friendly column addition (mutate), rename
    4. Support mean as an alias for avg in Scala and also support n_distinct, n 
as in dplyr
    
    Using these changes we can pretty much run the examples as described in 
http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html with the 
same syntax
    
    The only thing missing in SparkR is auto resolving column names when used 
in an expression i.e. making something like `select(flights, delay)` works in 
dply but we right now need `select(flights, flights$delay)` or `select(flights, 
"delay")`. But this is a complicated change and I'll file a new issue for it
    
    cc @sun-rui @rxin 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shivaram/spark-1 sparkr-df-api

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/6005.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6005
    
----
commit 05211490e6e0dec3187131a465f251907cb77562
Author: Shivaram Venkataraman <[email protected]>
Date:   2015-05-08T07:18:29Z

    Changes to make SparkR DataFrame dplyr friendly.
    Changes include
    1. Rename sortDF to arrange
    2. Add new aliases `group_by` and `sample_frac`, `summarize`
    3. Add more user friendly column addition (mutate), rename
    4. Support mean as an alias for avg in Scala and also support n_distinct, n 
as in dplyr

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to