Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

sparklyr alternative for str_detect

# dplyr accepts Spark functions as R functions when there is no dplyr equivalent
df_spark %>% mutate(contains_potato = rlike(foodtype, "potato"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sparklyr #alternative
ADD COMMENT
Topic
Name
2+1 =