if (FALSE) {
library(sparklyr)
sc <- spark_connect(master = "local")
# only keep odd elements in each array in `array_column`
copy_to(sc, dplyr::tibble(array_column = list(1:5, 21:25))) %>%
hof_filter(~ .x %% 2 == 1)
}
Run the code above in your browser using DataLab