spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From actuaryzhang <...@git.apache.org>
Subject [GitHub] spark pull request #18114: [SPARK-20889][SparkR] Grouped documentation for D...
Date Wed, 21 Jun 2017 18:21:49 GMT
Github user actuaryzhang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18114#discussion_r123327948
  
    --- Diff: R/pkg/R/functions.R ---
    @@ -2348,26 +2336,18 @@ setMethod("n", signature(x = "Column"),
                 count(x)
               })
     
    -#' date_format
    -#'
    -#' Converts a date/timestamp/string to a value of string in the format specified by the
date
    -#' format given by the second argument.
    -#'
    -#' A pattern could be for instance \preformatted{dd.MM.yyyy} and could return a string
like '18.03.1993'. All
    +#' @section Details:
    +#' \code{date_format}: Converts a date/timestamp/string to a value of string in the format
    +#' specified by the date format given by the second argument. A pattern could be for
instance
    +#' \code{dd.MM.yyyy} and could return a string like '18.03.1993'. All
     #' pattern letters of \code{java.text.SimpleDateFormat} can be used.
    -#'
     #' Note: Use when ever possible specialized functions like \code{year}. These benefit
from a
     #' specialized implementation.
     #'
    -#' @param y Column to compute on.
    -#' @param x date format specification.
    +#' @rdname column_datetime_diff_functions
     #'
    -#' @family date time functions
    -#' @rdname date_format
    -#' @name date_format
    -#' @aliases date_format,Column,character-method
    +#' @aliases date_format date_format,Column,character-method
     #' @export
    -#' @examples \dontrun{date_format(df$t, 'MM/dd/yyy')}
    --- End diff --
    
    Added back.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message