is_best_k-ConsensusPartition-method {cola} | R Documentation |
Test whether the current k is the best/optional k
## S4 method for signature 'ConsensusPartition' is_best_k(object, k, ...)
object |
A |
k |
Number of subgroups. |
... |
Optional best k is also assigned as TRUE
.
Logical scalar.
data(golub_cola) obj = golub_cola["ATC", "skmeans"] is_best_k(obj, k = 2) is_best_k(obj, k = 3)