Error running hierClust
1
0
Entering edit mode
sekhwal • 0
@sekhwal-23546
Last seen 2.1 years 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)

cluster_data <- read.csv(file = "/analysis/core-try.csv", header=TRUE, row.names=1)
d <- dist(cluster_data)
h <- hierClust(d)

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

hierClust R SNPs clustering • 595 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 6 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.

ADD COMMENT

Login before adding your answer.

Traffic: 522 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6