sort.clustering {Clustering} | R Documentation |
This function receives a clustering object and sorts the columns by parameter. By default it performs sorting by the algorithm field.
## S3 method for class 'clustering'
sort(x, decreasing = TRUE, ...)
x |
It's an |
decreasing |
A logical indicating if the sort should be increasing or decreasing. By default, decreasing. |
... |
Additional parameters as "by", a String with the name of the
evaluation measure to order by. Valid values are: |
The additional argument in "..." is the 'by' argument, which is a
array with the name of the evaluation measure to order by. Valid value are:
Algorithm, Distance, Clusters, Data, Var, Time, Entropy,
Variation_information, Precision, Recall, F_measure, Fowlkes_mallows_index,
Connectivity, Dunn, Silhouette, TimeAtt
.
Another clustering
object with the evaluation measures sorted
library(Clustering)
result <-
clustering(df = cluster::agriculture,min = 4, max = 4,algorithm='gmm',
metrics='Recall')
sort(result, FALSE, 'Recall')