R/add_cluster_ID.R

Defines functions addclusterID

addclusterID <- function(pop_list, names) {
    # Get position in list
    clusterID <- as.numeric(names)
    cluster <- rep.int(clusterID, nrow(pop_list))

    newMatrix <- cbind(pop_list, cluster)
    return(newMatrix)
}
cytolab/cytoMEM documentation built on Sept. 13, 2023, 7:28 a.m.