Skip to content

Commit 72fb951

Browse files
committed
add fix
1 parent 52c9eb1 commit 72fb951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/pkg/R/mllib_clustering.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ setMethod("summary", signature(object = "KMeansModel"),
394394
k <- callJMethod(jobj, "k")
395395
size <- callJMethod(jobj, "size")
396396
clusterSize <- callJMethod(jobj, "clusterSize")
397-
coefficients <- t(matrix(coefficients, ncol = clusterSize))
397+
coefficients <- t(matrix(unlist(coefficients), ncol = clusterSize))
398398
colnames(coefficients) <- unlist(features)
399399
rownames(coefficients) <- 1:clusterSize
400400
cluster <- if (is.loaded) {

0 commit comments

Comments
 (0)