[ 
https://issues.apache.org/jira/browse/SPARK-15294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15281807#comment-15281807
 ] 

Shivaram Venkataraman commented on SPARK-15294:
-----------------------------------------------

[~mhnatiuk] Thanks for opening this. I dont think we need any Scala changes to 
implement this. Similar to the count method [1], we just need to add a R 
wrapper that calls the pivot method in Scala. The python implementation is 
similar as you can see in [2]

Let us know if you want to open a PR for this.

[1] 
https://github.com/apache/spark/blob/470de743ecf3617babd86f50ab203e85aa975d69/R/pkg/R/group.R#L65
[2] 
https://github.com/apache/spark/blob/470de743ecf3617babd86f50ab203e85aa975d69/python/pyspark/sql/group.py#L171

> Add pivot functionality to SparkR
> ---------------------------------
>
>                 Key: SPARK-15294
>                 URL: https://issues.apache.org/jira/browse/SPARK-15294
>             Project: Spark
>          Issue Type: Improvement
>          Components: SparkR
>            Reporter: MikoĊ‚aj Hnatiuk
>            Priority: Minor
>              Labels: pivot
>
> R users are very used to transforming data using functions such as dcast 
> (pkg:reshape2). https://github.com/apache/spark/pull/7841 introduces such 
> functionality to Scala and Python APIs. I'd like to suggest adding this 
> functionality into SparkR API to pivot DataFrames.
> I'd love to to this, however, my knowledge of Scala is still limited, but 
> with a proper guidance I can give it a try.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to