Description Usage Arguments Details Value Author(s) Examples

Get membership matrix

1 2 | ```
## S4 method for signature 'ConsensusPartition'
get_membership(object, k, each = FALSE)
``` |

`object` |
a |

`k` |
number of partitions. |

`each` |
whether return the percentage membership matrix which is summarized from all repetitive partitionings or the individual membership in every random partitioning. |

If `each == TRUE`

, the value in the membership matrix is the probability
to be in one subgroup, while if `each == FALSE`

, the membership matrix contains the
class labels for the partitions in all repetitive partitionings with randomly sampling subset
of rows in the matrix.

The percent membership matrix is calculated by `cl_consensus`

.

A membership matrix where rows correspond to the samples in the original matrix.

Zuguang Gu <[email protected]>

1 2 3 4 | ```
data(cola_rl)
obj = cola_rl["sd", "kmeans"]
get_membership(obj, k = 2)
get_membership(obj, k = 2, each = TRUE)
``` |

jokergoo/cola documentation built on Nov. 27, 2018, 11:16 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.