Github user felixcheung commented on a diff in the pull request: https://github.com/apache/spark/pull/17825#discussion_r114245780 --- Diff: R/pkg/R/DataFrame.R --- @@ -3715,3 +3715,24 @@ setMethod("rollup", sgd <- callJMethod(x@sdf, "rollup", jcol) groupedData(sgd) }) + +#' alias +#' +#' @aliases alias,SparkDataFrame-method +#' @rdname alias +#' @name alias +#' @examples \dontrun{ +#' df <- alias(createDataFrame(mtcars), "mtcars") +#' avg_mpg <- alias(agg(groupBy(df, df$cyl), avg(df$mpg)), "avg_mpg") +#' +#' head(select(df, column("mtcars.mpg"))) +#' head(join(df, avg_mpg, column("mtcars.cyl") == column("avg_mpg.cyl"))) +#' } +#' @note alias since 2.3.0 --- End diff -- then we put type in the note for each overload https://github.com/apache/spark/blob/master/R/pkg/R/mllib_classification.R#L121
--- 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