How to pass parameter from K in text input to "number of cluster" in K-Centroids Cluster Analysis ?
Solved! Go to Solution.
The K-Centroids Cluster Analysis tool is actually a macro you can right-click and edit, so it's easy enough to save off a new copy for this exercise. Start off by taking note of where the Number of clusters question takes effect. Inside the macro, R-Tool (4), line 22 defines the following:
num.clus <- %Question.num clus%
Now modifying this will depend on how you want this process to work. I assume you want to update this from the data stream? You can append the value to the current input data and update the R code to something like.
num.clus <- unique(the.data$num_clus)
Now if you want various values, you're probably best off building the tool into a batch macro.
@CharlieS
Thanks CharlieS , Could you possibly to show simple config this your guideline.
thank you very much
@CharlieS
Thanks Charlie , Could you possibly to show simple config this your guideline.
thank you very much
There's a few ways to go about this. If you could provide an example of how you would like to configure the inputs or control this macro, that would be very helpful.