thisisnic commented on a change in pull request #10215:
URL: https://github.com/apache/arrow/pull/10215#discussion_r624008001
##########
File path: r/R/compute.R
##########
@@ -267,6 +267,25 @@ value_counts <- function(x) {
call_function("value_counts", x)
}
+
+#' `variance` and `stddev` for Arrow objects
+#'
+#' These functions calculate the variance and standard deviation of Arrow
arrays
+#' @param x `Array` or `ChunkedArray`
+#' @param ddof The divisor used in calculations is N - ddof, where N is the
number of elements.
+#' By default, ddof is zero, and population variance or stddev is returned.
+#' @return A `Scalar` containing the calculated value.
+#' @export
+stddev <- function(x, ddof = 0) {
+ call_function("stddev", x, options = list(ddof = ddof))
Review comment:
There is not. Done - https://issues.apache.org/jira/browse/ARROW-12615
--
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]