Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangmiao1981 committed Jan 31, 2017
1 parent 52c9eb1 commit 72fb951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg/R/mllib_clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ setMethod("summary", signature(object = "KMeansModel"),
k <- callJMethod(jobj, "k")
size <- callJMethod(jobj, "size")
clusterSize <- callJMethod(jobj, "clusterSize")
coefficients <- t(matrix(coefficients, ncol = clusterSize))
coefficients <- t(matrix(unlist(coefficients), ncol = clusterSize))
colnames(coefficients) <- unlist(features)
rownames(coefficients) <- 1:clusterSize
cluster <- if (is.loaded) {
Expand Down

0 comments on commit 72fb951

Please sign in to comment.