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

Sun Rui commented on SPARK-12232:
---------------------------------

+1 [~yanboliang]

Since we already have table(), we can change it to an S4 generic function, 
change the original table() function into an S4 method on "jobj" class, and add 
a new table() s4 method on "DataFrame".

If backward-compatibility is not a concern, we may consider rename table() to 
something tableToDF(). But it seems that table() is not so common in the R base 
package, I find no strong motivation for it.

> Consider exporting read.table in R
> ----------------------------------
>
>                 Key: SPARK-12232
>                 URL: https://issues.apache.org/jira/browse/SPARK-12232
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 1.5.2
>            Reporter: Felix Cheung
>            Priority: Minor
>
> Since we have read.df, read.json, read.parquet (some in pending PRs), we have 
> table() and we should consider having read.table() for consistency and 
> R-likeness.
> However, this conflicts with utils::read.table which returns a R data.frame.
> It seems neither table() or read.table() is desirable in this case.
> table: https://stat.ethz.ch/R-manual/R-devel/library/base/html/table.html
> read.table: 
> https://stat.ethz.ch/R-manual/R-devel/library/utils/html/read.table.html



--
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