Sparklyr alternatywa dla str_detect

# dplyr accepts Spark functions as R functions when there is no dplyr equivalent
df_spark %>% mutate(contains_potato = rlike(foodtype, "potato"))
Trustworthy Whale