aboutsummaryrefslogtreecommitdiff
path: root/R/pkg
diff options
context:
space:
mode:
authorYanbo Liang <ybliang8@gmail.com>2016-08-16 10:52:35 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-08-16 10:52:35 -0700
commitd37ea3c09c054f2cc1305b2520ff46b2c0e58704 (patch)
treec776971f7cdbf7bac186bb69740d8b660506970e /R/pkg
parent12a89e55cbd630fa2986da984e066cd07d3bf1f7 (diff)
downloadspark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.tar.gz
spark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.tar.bz2
spark-d37ea3c09c054f2cc1305b2520ff46b2c0e58704.zip
[MINOR][SPARKR] spark.glm weightCol should in the signature.
## What changes were proposed in this pull request? Fix the issue that ```spark.glm``` ```weightCol``` should in the signature. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes #14641 from yanboliang/weightCol.
Diffstat (limited to 'R/pkg')
-rw-r--r--R/pkg/R/mllib.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R
index 25d9f077b4..6f6e2fc255 100644
--- a/R/pkg/R/mllib.R
+++ b/R/pkg/R/mllib.R
@@ -140,7 +140,7 @@ setMethod("spark.glm", signature(data = "SparkDataFrame", formula = "formula"),
jobj <- callJStatic("org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper",
"fit", formula, data@sdf, family$family, family$link,
- tol, as.integer(maxIter), weightCol)
+ tol, as.integer(maxIter), as.character(weightCol))
return(new("GeneralizedLinearRegressionModel", jobj = jobj))
})