Returns the order of the best partitions according to a certain criterion.
Arguments
- criterionValues
Vector of numerical data indicating the
criterionvalues for different partitions. (numeric vector)- criterion
Name of the clustering criterion. (character string)
- byName
TRUE(default) if what should be returned is the names of partitions rather than their identifier.FALSEotherwise. The partition names can be specified via thenamesvariable. If it'sNULL, then the names of thecriterionValuesvector will be used. If none are available,byNameis set toFALSE. (boolean)- names
Names of the partitions. Used when
byNameisTRUE, ignored otherwise. If used, it must be the same size ascriterionValues. (vector orNULL)- keepNA
flag indicating if NA values should be kept in the result. If
TRUE, they are kept at the end of the vector. IfFALSE, they are removed.
