function(kmeansObject, vcorpusObject) {
clusterCount = length(table(clusterAll.kmeans$cluster))
result = list()
# extract
# ToDo: Improve Failsafeness
for (i in 1:clusterCount) {
extracted = vcorpusObject[clusterAll.kmeans$cluster == i]
print(extracted)
result[[i]] = extracted
}
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.