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

    https://github.com/apache/spark/pull/13476#discussion_r65656453
  
    --- Diff: R/pkg/R/column.R ---
    @@ -151,6 +151,40 @@ setMethod("substr", signature(x = "Column"),
                 column(jc)
               })
     
    +#' startsWith
    +#'
    +#' Determines if entries of x start with string (entries of) prefix 
respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname startsWith
    +#' @name startsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “starts” are considered
    +#' @param character vector (often of length one)
    +setMethod("startsWith", signature(x = "Column"),
    +          function(x, prefix) {
    +            jc <- callJMethod(x@jc, "startsWith", as.vector(prefix))
    +            column(jc)
    +          })
    +
    +#' endsWith
    +#'
    +#' Determines if entries of x end with string (entries of) suffix 
respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname endsWith
    +#' @name endsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “ends” are considered
    --- End diff --
    
    ditto here


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