I want to do cluster analysis of certain columns (variables), say var 5-var10. For that I used pvclust
in R. Now, I want to add this column of clusters into the actual dataframe. Can anybody please help me to fix this problem. The code I used is given below:
group <- sqldf("select cq14x1_1,cq14x1_2,cq14x1_3,cq14x1_4,cq14x1_5,cq14x1_6,cq14x1_7, from parma_1")
fit_1 <- pvclust(group,method.hclust="ward",method.dist="euclidean")
group_2 <- (fit_1,alpha=.90)