aboutsummaryrefslogtreecommitdiff
path: root/docs/ml-clustering.md
diff options
context:
space:
mode:
authorYanbo Liang <ybliang8@gmail.com>2016-12-05 00:39:44 -0800
committerYanbo Liang <ybliang8@gmail.com>2016-12-05 00:39:44 -0800
commiteb8dd68132998aa00902dfeb935db1358781e1c1 (patch)
tree301f4278428da6535ec01a83bc42952b0ec4f444 /docs/ml-clustering.md
parentbdfe7f67468ecfd9927a1fec60d6605dd05ebe3f (diff)
downloadspark-eb8dd68132998aa00902dfeb935db1358781e1c1.tar.gz
spark-eb8dd68132998aa00902dfeb935db1358781e1c1.tar.bz2
spark-eb8dd68132998aa00902dfeb935db1358781e1c1.zip
[SPARK-18279][DOC][ML][SPARKR] Add R examples to ML programming guide.
## What changes were proposed in this pull request? Add R examples to ML programming guide for the following algorithms as POC: * spark.glm * spark.survreg * spark.naiveBayes * spark.kmeans The four algorithms were added to SparkR since 2.0.0, more docs for algorithms added during 2.1 release cycle will be addressed in a separate follow-up PR. ## How was this patch tested? This is the screenshots of generated ML programming guide for ```GeneralizedLinearRegression```: ![image](https://cloud.githubusercontent.com/assets/1962026/20866403/babad856-b9e1-11e6-9984-62747801e8c4.png) Author: Yanbo Liang <ybliang8@gmail.com> Closes #16136 from yanboliang/spark-18279.
Diffstat (limited to 'docs/ml-clustering.md')
-rw-r--r--docs/ml-clustering.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ml-clustering.md b/docs/ml-clustering.md
index eedacb12bc..da23442555 100644
--- a/docs/ml-clustering.md
+++ b/docs/ml-clustering.md
@@ -86,6 +86,14 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.clustering.
{% include_example python/ml/kmeans_example.py %}
</div>
+
+<div data-lang="r" markdown="1">
+
+Refer to the [R API docs](api/R/spark.kmeans.html) for more details.
+
+{% include_example kmeans r/ml.R %}
+</div>
+
</div>
## Latent Dirichlet allocation (LDA)