R/get_cluster_memberships_k.R

Defines functions get_cluster_memberships_k.clusterVoting get_cluster_memberships_k

Documented in get_cluster_memberships_k

#' Get cluster memberships for every k
#'
#' @param object An object of class "clusterVoting"
#' @return Cluster memberships for every k
#' @export
#'
#' @examples
#' cv.object <- clusterVoting(toy_genes, 4,6,"sc")
#' get_cluster_memberships_k(cv.object)
get_cluster_memberships_k <- function(object) {
    UseMethod("get_cluster_memberships_k")
}
#' @export
get_cluster_memberships_k.clusterVoting <- function(object) {
    object$cluster.memberships.k
}
BioSok/omada documentation built on Aug. 21, 2023, 2:38 p.m.