# NOT RUN {
data(Election2005)
# }
# NOT RUN {
# Variable clustering based on minimum correlation
vc1 <- varclust(Election2005,mincor=0.8)
vc1$c # The number of clusters is 45
# Variable clustering based on the number of clusters
vc2 <- varclust(Election2005,30)
vc2$mincor # The minimum correlation is 0.63
# }
Run the code above in your browser using DataLab