Skip to content

Commit a853aa9

Browse files
authored
Remove all formatting from the tables (#443)
1 parent 6e57fb9 commit a853aa9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/commonMachineLearningClustering.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@
149149
table$dependOn(options = .mlClusteringDependencies(options))
150150
table$addColumnInfo(name = "clusters", title = gettext("Clusters"), type = "integer")
151151
table$addColumnInfo(name = "n", title = gettext("N"), type = "integer")
152-
table$addColumnInfo(name = "measure", title = gettextf("R%s", "\u00B2"), type = "number", format = "dp:2")
153-
table$addColumnInfo(name = "aic", title = gettext("AIC"), type = "number", format = "dp:2")
154-
table$addColumnInfo(name = "bic", title = gettext("BIC"), type = "number", format = "dp:2")
155-
table$addColumnInfo(name = "Silh", title = gettext("Silhouette"), type = "number", format = "dp:2")
152+
table$addColumnInfo(name = "measure", title = gettextf("R%s", "\u00B2"), type = "number")
153+
table$addColumnInfo(name = "aic", title = gettext("AIC"), type = "number")
154+
table$addColumnInfo(name = "bic", title = gettext("BIC"), type = "number")
155+
table$addColumnInfo(name = "Silh", title = gettext("Silhouette"), type = "number")
156156
if (type == "kmeans") {
157157
table$addCitation("Hartigan, J. A., & Wong, M. A. (1979). Algorithm AS 136: A k-means clustering algorithm. Journal of the Royal Statistical Society. Series C (Applied Statistics), 28(1), 100-108.")
158158
} else if (type == "kmedians") {
@@ -245,7 +245,7 @@
245245
if (options[["tableClusterInformationCentroids"]]) {
246246
for (i in seq_along(options[["predictors"]])) {
247247
title <- gettextf("Center %s", options[["predictors"]][i])
248-
table$addColumnInfo(name = paste0("centroid", i), title = title, type = "number", format = "dp:3")
248+
table$addColumnInfo(name = paste0("centroid", i), title = title, type = "number")
249249
}
250250
}
251251
}

R/mlClusteringRandomForest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ mlClusteringRandomForest <- function(jaspResults, dataset, options, ...) {
148148
table$position <- position
149149
table$dependOn(options = c(.mlClusteringDependencies(), "featureImportanceTable"))
150150
table$addColumnInfo(name = "variable", title = "", type = "string")
151-
table$addColumnInfo(name = "measure", title = gettext("Mean decrease in Gini Index"), type = "number", format = "sf:4")
151+
table$addColumnInfo(name = "measure", title = gettext("Mean decrease in Gini Index"), type = "number")
152152
jaspResults[["importanceTable"]] <- table
153153
if (!ready) {
154154
return()

0 commit comments

Comments
 (0)