R/Cluster.R

#'Clusters and split the data into N partitions
#'@param sco scells object
#'@param N N number of groups
#'@export Cluster
Cluster <- function(sco,N) {

  hc <- hclust(dist(t(sco@facs)), method="ward.D2")
  sco@groupsid <- cutree(hc, k=N)
  sco
}
akonturek/MyFirstPackage documentation built on May 31, 2019, 4:58 a.m.