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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.