HyukjinKwon commented on a change in pull request #29917:
URL: https://github.com/apache/spark/pull/29917#discussion_r499340542
##########
File path: R/pkg/R/functions.R
##########
@@ -4458,3 +4469,25 @@ setMethod("timestamp_seconds",
)
column(jc)
})
+
+#' @details
+#' \code{vector_to_array} Converts a column of MLlib sparse/dense vectors into
+#' a column of dense arrays.
+#'
+#' @param dtype The data type of the output array. Valid values: "float64" or
"float32".
+#'
+#' @rdname column_ml_functions
+#' @aliases vector_to_array vector_to_array,Column-method
+#' @note vector_to_array since 3.1.0
+setMethod("vector_to_array",
+ signature(x = "Column"),
+ function(x, dtype = c("float32", "float64")) {
Review comment:
@zero323, sorry I missed this. Should we switch the order of the vector
here to make the default as `float64` like Python and Scala side?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]