Handwriter also supports K-means clustering of graphs.
To create a clustering template you can use createClusterTemplates()
createClusterTemplates() only has one required parameter, documentDirectory which is the folder where the documents to process reside.
Paths can also be provided for storage of log files, temp files, and results files. Otherwise, they will be stored within documentDirectory
Typical use cases:
#The most basic call, with only the documentDirectory providedcreateClusterTemplates("path/to/directory")#A call with the documentDirectory, resultsFile, 25 clusters and 5 cluster setscreateClusterTemplates(documentDirectory = "path/to/directory", resultsFile = "path/to/resultsfile", K = 25, numberToRun = 5)
The parameters for createClusterTemplates() include: