Alternativa Sparklyr para 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