Returns the order of the best partitions according to a certain criterion.
Arguments
- criterionValues
Vector of numerical data indicating the
criterion
values 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.FALSE
otherwise. The partition names can be specified via thenames
variable. If it'sNULL
, then the names of thecriterionValues
vector will be used. If none are available,byName
is set toFALSE
. (boolean)- names
Names of the partitions. Used when
byName
isTRUE
, 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.