Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/7356#discussion_r34480231
--- Diff: R/pkg/R/column.R ---
@@ -187,6 +187,23 @@ setMethod("substr", signature(x = "Column"),
column(jc)
})
+#' between
+#'
+#' Test if the column is between the lower bound and upper bound,
inclusive.
+#'
+#' @rdname column
+#'
+#' @param bounds lower and upper bounds
+setMethod("between", signature(x = "Column"),
+ function(x, bounds) {
+ if (is.vector(bounds) && length(bounds) == 2) {
--- End diff --
Would we also need to check the types of `bound` here ? Or to put it
another way, does this work for all types or just numbers ?
---
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]