Error running hierClust
1
0
Entering edit mode
sekhwal • 0
@sekhwal-23546
Last seen 12 weeks ago
United States

Hi, I am trying to make a cluster of snippy's matrix results using hierClust. Please suggest how to run the function.

library(stats)

d <- dist(cluster_data)
h <- hierClust(d)


error: Error in hierClust(d) : could not find function "hierClust"

hierClust R SNPs clustering • 123 views
0
Entering edit mode
@james-w-macdonald-5106
Last seen 11 hours ago
United States

Any time R tells you that a function can't be found (and the function is provided by a particular package), it's because you haven't loaded the requisite package. In this case it's the momr package that you have neglected to load.

Also, please note that this support site is meant to provide support for Bioconductor packages, and neither the stats package nor momr are Bioconductor packages. You could ask about those packages on R-help (r-help@r-project.org), or maybe stackoverflow.com.