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

    https://github.com/apache/spark/pull/18025#discussion_r122322352
  
    --- Diff: R/pkg/R/functions.R ---
    @@ -2254,18 +2198,12 @@ setMethod("approxCountDistinct",
                 column(jc)
               })
     
    -#' Count Distinct Values
    +#' @section Details:
    +#' \code{countDistinct}: Returns the number of distinct items in a group.
     #'
    -#' @param x Column to compute on
    -#' @param ... other columns
    --- End diff --
    
    I agree it is less clear, but the impact is very minor if we have examples 
to illustrate passing additional columns. I now updated the doc of the argument 
as
    `#' @param ... additional argument(s). For example, it could be used to 
pass additional Columns. `
    And update the example to have multiple columns:
    `head(select(df, countDistinct(df$gear, df$cyl)))`
    Do the above changes address your concern? 



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