Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/11336#discussion_r84993459
--- Diff: R/pkg/R/DataFrame.R ---
@@ -1166,12 +1166,13 @@ setMethod("take",
collect(limited)
})
-#' Head
-#'
-#' Return the first \code{num} rows of a SparkDataFrame as a R data.frame.
If \code{num} is not
-#' specified, then head() returns the first 6 rows as with R data.frame.
-#'
-#' @param x a SparkDataFrame.
+#' Return the first part of a SparkDataFrame or Column
+#'
+#' If \code{x} is a SparkDataFrame, its first
+#' rows will be returned as a data.frame. If the dataset is a
\code{Column}, its first
+#' elements will be returned as a vector. The number of elements to be
returned
+#' is given by parameter \code{num}. Default value for \code{num} is 6.
+#' @param x a SparkDataFrame or Column
--- End diff --
Same go for "show", I believe:
https://github.com/olarayej/spark/blob/1338d71a8f8f1387e08326851e15fcc84d5092f9/R/pkg/R/DataFrame.R#L230
---
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]