pvclust

cluster one-dimensional data using pvclust

自古美人都是妖i 提交于 2019-12-11 09:14:17
问题 Thanks for taking time read this question. I have some one-dimensional data to cluster in R. The basic hclust command works fine. But the pvclust command, however, does not take one-dimensional data, and keeps saying: Error in hclust(distance, method = method.hclust) : must have n >= 2 objects to cluster I found a work-around, that I added some all-zero rows to the data. So the data becomes: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 7.424 14.251 15.957 1.542 2.451 20.836 13.534