[SPARK-15222][SPARKR][ML] SparkR ML examples update in 2.0
[SPARK-15222][SPARKR][ML] SparkR ML examples update in 2.0

## What changes were proposed in this pull request?
Update example code in examples/src/main/r/ml.R to reflect the new algorithms.
* spark.glm and glm
* spark.survreg
* spark.naiveBayes
* spark.kmeans

## How was this patch tested?
Offline test.

Author: Yanbo Liang <ybliang8@gmail.com>

Closes #13000 from yanboliang/spark-15222.

(cherry picked from commit 9a9c6f5c22248c5a891e9d3b788ff12b6b4718b2)
Signed-off-by: Xiangrui Meng <9616cf314f60cbadfd3d5d51110130ad7923defb@databricks.com>

gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark