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

    https://github.com/apache/spark/pull/18067#discussion_r118315143
  
    --- Diff: R/pkg/vignettes/sparkr-vignettes.Rmd ---
    @@ -776,6 +778,19 @@ newDF <- createDataFrame(data.frame(x = c(1.5, 3.2)))
     head(predict(isoregModel, newDF))
     ```
     
    +#### Decision Tree
    +
    +`spark.decisionTree` fits a [decision 
tree](https://en.wikipedia.org/wiki/Decision_tree_learning) classification or 
regression model on a `SparkDataFrame`.
    +Users can call `summary` to get a summary of the fitted model, `predict` 
to make predictions, and `write.ml`/`read.ml` to save/load fitted models.
    +
    +We use the `longley` dataset to train a decision tree and make predictions:
    +
    +```{r, warning=FALSE}
    +df <- createDataFrame(longley)
    --- End diff --
    
    actually, I think there's a confusion - I don't mean to change not to use 
`.` in formula
    I mean the reason why we have `warning=FALSE` here is because 
`createDataFrame(longley)` will cause a warning because it has column with name 
with `.` in it. And we should avoid that if we can


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to