is_best_k-ConsensusPartition-method | 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. |
... |
Pass to |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.