Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17557#discussion_r111690507
  
    --- Diff: R/pkg/vignettes/sparkr-vignettes.Rmd ---
    @@ -906,6 +910,37 @@ predicted <- predict(model, df)
     head(predicted)
     ```
     
    +#### FP-growth
    +
    +`spark.fpGrowth` executes FP-growth algorithm to mine frequent itemsets on 
a `SparkDataFrame`. `itemsCol` should be an array of values.
    +
    +```{r}
    +items <- selectExpr(createDataFrame(data.frame(items = c(
    +  "T,R,U", "T,S", "V,R", "R,U,T,V", "R,S", "V,S,U", "U,R", "S,T", "V,R", 
"V,U,S",
    +  "T,V,U", "R,V", "T,S", "T,S", "S,T", "S,U", "T,R", "V,R", "S,V", "T,S,U"
    +))), "split(items, ',') AS items")
    --- End diff --
    
    perhaps it's slightly less clear, since there are 3 references to "items" 
(or really, just the SparkDataFrame and its column name), which "items" L923 is 
referring to?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to