Github user sun-rui commented on a diff in the pull request:
https://github.com/apache/spark/pull/8952#discussion_r41691407
--- Diff: R/pkg/R/SQLContext.R ---
@@ -75,8 +75,8 @@ infer_type <- function(x) {
#'\dontrun{
#' sc <- sparkR.init()
#' sqlContext <- sparkRSQL.init(sc)
-#' rdd <- lapply(parallelize(sc, 1:10), function(x) list(a=x,
b=as.character(x)))
-#' df <- createDataFrame(sqlContext, rdd)
+#' df1 <- as.DataFrame(sqlContext, iris)
--- End diff --
I see.
It's OK the remove the example of RDD API. What I meant is that we have
examples for both createDataFrame() and as.DataFrame(). I see that NarineK
added examples, it is OK now.
---
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]