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

    https://github.com/apache/spark/pull/8266#discussion_r37374083
  
    --- Diff: R/pkg/R/functions.R ---
    @@ -163,3 +163,17 @@ setMethod("n", signature(x = "Column"),
               function(x) {
                 count(x)
               })
    +
    +#' when
    +#'
    +#' Evaluates a list of conditions and returns one of multiple possible 
result expressions.
    --- End diff --
    
    We can remove the part about `otherwise` here and just make this
    ```
    Evaluates a list of conditions and returns one of multiple possible result 
expressions. For unmatched expressions null is returned.
    ```
    
    For the `otherwise` documentation we can say
    ```
    If values in the specified column are null, returns the value. Can be used 
in conjunction with `when` to specify a default value for expressions.
    ``` 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to