[jira] [Updated] (SPARK-13905) Change signature of as.data.frame() to be consistent with the R base package

2016-03-19 Thread Sun Rui (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-13905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sun Rui updated SPARK-13905:

Description: (was: SparkR provides a method as.data.frame() to collect 
a SparkR DataFrame into a local data.frame. But it conflicts the methods with 
the same name in the R base package.

For example,
{code}
code as follows - 
countData <- matrix(1:100,ncol=4)
condition <- factor(c("A","A","B","B"))
dds <- DESeqDataSetFromMatrix(countData, DataFrame(condition), ~ condition)

Works if i dont initialize the sparkR environment. 
 if I do library(SparkR) and sqlContext <- sparkRSQL.init(sc)  it gives 
following error 

> dds <- DESeqDataSetFromMatrix(countData, as.data.frame(condition), ~ 
> condition)
Error in DataFrame(colData, row.names = rownames(colData)) : 
  cannot coerce class "data.frame" to a DataFrame
{code}

The implementation of as.data.frame() in SparkR can be improved to avoid 
conflict with those in the R base package.)

> Change signature of as.data.frame() to be consistent with the R base package
> 
>
> Key: SPARK-13905
> URL: https://issues.apache.org/jira/browse/SPARK-13905
> Project: Spark
>  Issue Type: Improvement
>  Components: SparkR
>Affects Versions: 1.6.1
>Reporter: Sun Rui
>




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

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-13905) Change signature of as.data.frame() to be consistent with the R base package

2016-03-19 Thread Sun Rui (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-13905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sun Rui updated SPARK-13905:

Summary: Change signature of as.data.frame() to be consistent with the R 
base package  (was: Change implementation of as.data.frame() to avoid conflict 
with the ones in the R base package)

> Change signature of as.data.frame() to be consistent with the R base package
> 
>
> Key: SPARK-13905
> URL: https://issues.apache.org/jira/browse/SPARK-13905
> Project: Spark
>  Issue Type: Improvement
>  Components: SparkR
>Affects Versions: 1.6.1
>Reporter: Sun Rui
>
> SparkR provides a method as.data.frame() to collect a SparkR DataFrame into a 
> local data.frame. But it conflicts the methods with the same name in the R 
> base package.
> For example,
> {code}
> code as follows - 
> countData <- matrix(1:100,ncol=4)
> condition <- factor(c("A","A","B","B"))
> dds <- DESeqDataSetFromMatrix(countData, DataFrame(condition), ~ condition)
> Works if i dont initialize the sparkR environment. 
>  if I do library(SparkR) and sqlContext <- sparkRSQL.init(sc)  it gives 
> following error 
> > dds <- DESeqDataSetFromMatrix(countData, as.data.frame(condition), ~ 
> > condition)
> Error in DataFrame(colData, row.names = rownames(colData)) : 
>   cannot coerce class "data.frame" to a DataFrame
> {code}
> The implementation of as.data.frame() in SparkR can be improved to avoid 
> conflict with those in the R base package.



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

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-13905) Change signature of as.data.frame() to be consistent with the R base package

2016-03-18 Thread Sun Rui (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-13905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sun Rui updated SPARK-13905:

Description: change the signature of as.data.frame() to be consistent with 
that in the R base package to meet R user's convention, as documented at 
http://www.inside-r.org/r-doc/base/as.data.frame

> Change signature of as.data.frame() to be consistent with the R base package
> 
>
> Key: SPARK-13905
> URL: https://issues.apache.org/jira/browse/SPARK-13905
> Project: Spark
>  Issue Type: Improvement
>  Components: SparkR
>Affects Versions: 1.6.1
>Reporter: Sun Rui
>
> change the signature of as.data.frame() to be consistent with that in the R 
> base package to meet R user's convention, as documented at 
> http://www.inside-r.org/r-doc/base/as.data.frame



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

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org