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)
}
JonathanIrish/MEMv3 documentation built on July 14, 2019, 10:43 p.m.