You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sun Rui (JIRA)" <ji...@apache.org> on 2016/03/18 04:30:33 UTC

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

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org