Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/21434#discussion_r191056286
--- Diff: R/pkg/R/functions.R ---
@@ -3048,6 +3048,21 @@ setMethod("array_position",
column(jc)
})
+#' @details
+#' \code{array_repeat}: Creates an array containing the left argument
repeated the number of times
+#' given by the right argument.
+#'
+#' @param n Column determining the number of repetitions.
+#' @rdname column_collection_functions
+#' @aliases array_repeat array_repeat,Column-method
+#' @note array_repeat since 2.4.0
+setMethod("array_repeat",
+ signature(x = "Column", n = "Column"),
--- End diff --
Scala has this as "col" and "count" so how about either "x" and "count" or
"x" and "value" (value already is in used in column_collection_functions)
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]