Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17851#discussion_r114698264
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -3715,3 +3715,34 @@ setMethod("rollup",
                 sgd <- callJMethod(x@sdf, "rollup", jcol)
                 groupedData(sgd)
               })
    +
    +#' hint
    +#'
    +#' Specifies execution plan hint on the current SparkDataFrame.
    +#'
    +#' @param x a SparkDataFrame.
    +#' @param name a name of the hint.
    +#' @param ... additional argument(s) passed to the method.
    +#'
    +#' @return A SparkDataFrame.
    +#' @family SparkDataFrame functions
    +#' @aliases hint,SparkDataFrame,character-method
    +#' @rdname hint
    +#' @name hint
    +#' @export
    +#' @examples
    +#' \dontrun{
    +#' df <- createDataFrame(mtcars)
    +#' avg_mpg <- mean(groupBy(createDataFrame(mtcars), "cyl"), "mpg")
    --- End diff --
    
    you recreated `createDataFrame(mtcars)` here, do you mean to use `df` from 
the line before?


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

Reply via email to