[.ConsensusPartitionList | R Documentation |
Subset a ConsensusPartitionList object
## S3 method for class 'ConsensusPartitionList'
x[i, j, drop = TRUE]
x |
A |
i |
Index for top-value methods, character or nummeric. |
j |
Index for partitioning methods, character or nummeric. |
drop |
Whether drop class |
For a specific combination of top-value method and partitioning method, you can also
subset by e.g. x['SD:hclust']
.
A ConsensusPartitionList-class
object or a ConsensusPartition-class
object.
Zuguang Gu <z.gu@dkfz.de>
data(golub_cola)
golub_cola[c("SD", "MAD"), c("hclust", "kmeans")]
golub_cola["SD", "kmeans"] # a ConsensusPartition object
golub_cola["SD:kmeans"] # a ConsensusPartition object
golub_cola[["SD:kmeans"]] # a ConsensusPartition object
golub_cola["SD", "kmeans", drop = FALSE] # still a ConsensusPartitionList object
golub_cola["SD:kmeans", drop = FALSE] # still a ConsensusPartitionList object
golub_cola["SD", ]
golub_cola[, "hclust"]
golub_cola[1:2, 1:2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.