thisisnic commented on a change in pull request #10343:
URL: https://github.com/apache/arrow/pull/10343#discussion_r636072713
##########
File path: r/R/compute.R
##########
@@ -229,6 +233,25 @@ all.ArrowDatum <- function(..., na.rm = FALSE){
#' as `x` with the (0-based) indexes into `table`. `is_in()` returns a
#' `boolean`-type `Array` of the same length as `x` with values indicating
#' per element of `x` it it is present in `table`.
+#' @examples
+#' # note that the returned value is 0-indexed
+#' cars_tbl <- Table$create(name = rownames(mtcars), mtcars)
+#' match_arrow(Array$create("Mazda RX4 Wag"), cars_tbl$name)
Review comment:
Good catch there - this has been implemented for all ArrowDatum objects.
I also had a read of the docs for the C++ compute function and experimented
with different objects, and it appears that the output type == the x input
type, so I have documented this as well now.
--
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]