Github user sun-rui commented on a diff in the pull request: https://github.com/apache/spark/pull/12836#discussion_r64870674 --- Diff: R/pkg/R/group.R --- @@ -142,3 +142,54 @@ createMethods <- function() { } createMethods() + +#' gapply +#' +#' Applies a R function to each group in the input GroupedData +#' +#' @param x a GroupedData +#' @return a SparkDataFrame +#' @rdname gapply +#' @name gapply +#' @family agg_funcs +#' @examples +#' \dontrun{ +#' Computes the arithmetic mean of the second column by grouping +#' on the first and third columns. Output the grouping values and the average. +#' +#' df <- createDataFrame ( +#' sqlContext, --- End diff -- remove sqlContext
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org