How to save a calculated variable as a new variable in SPSS?
I am writing an extension for K-means in SPSS (in R language). I have successfully written the code to calculte K-means and now I want to save a number of a cluser as a new variable, but I don’t know how to do that. I have it saved as kmeans_cluster[1], but how do I save it in SPSS as a new variable?