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

    https://github.com/apache/spark/pull/18786#discussion_r132514011
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2973,15 +2974,48 @@ setMethod("describe",
                 dataFrame(sdf)
               })
     
    +#' summary
    +#'
    +#' Computes specified statistics for numeric and string columns. Available 
statistics are:
    +#' \itemize{
    +#' \item count
    +#' \item mean
    +#' \item stddev
    +#' \item min
    +#' \item max
    +#' \item arbitrary approximate percentiles specified as a percentage (eg, 
"75%")
    +#' }
    +#' If no statistics are given, this function computes count, mean, stddev, 
min,
    +#' approximate quartiles (percentiles at 25%, 50%, and 75%), and max.
    +#' This function is meant for exploratory data analysis, as we make no 
guarantee about the
    +#' backward compatibility of the schema of the resulting Dataset. If you 
want to
    +#' programmatically compute summary statistics, use the `agg` function 
instead.
    +#'
    +#'
     #' @param object a SparkDataFrame to be summarized.
    +#' @param ... (optional) statistics to be computed for all columns.
     #' @rdname summary
     #' @name summary
     #' @aliases summary,SparkDataFrame-method
    +#' @export
    +#' @examples
    +#'\dontrun{
    +#' sparkR.session()
    +#' path <- "path/to/file.json"
    +#' df <- read.json(path)
    +#' summary(df)
    +#' summary(df, "min", "25%", "75%", "max")
    +#' summary(select(df, "age", "height"))
    +#' }
     #' @note summary(SparkDataFrame) since 1.5.0
    +#' @note The statistics provided by \code{summary} were change in 2.3.0 
use \code{\link{describe}} for previous defaults.
    +#' @seealso \code{\link{describe}}
    --- End diff --
    
    ditto here and the previous line with `\code`


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