getJaccard < - function(data) {
l = length(data[1,])
jmatrix <- matrix(nrow=l,ncol=l)
for (i in 1:l) {
for (j in i:l) {
s <- compare(data[i], data[,j])
jmatrix[i,j] <- s
jmatrix[j,i] <- s
}
}
return (jmatrix)
}
I've installed the jaccard package. I'm getting an error that says -- Error: package or namespace load failed for ‘jaccard’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘qvalue’
I've searched the packages for qvalue and can't find it. Any help?
Hello,
From the code that you shared, its not clear where functionality from a Jaccard package would be relevant.
I see that you have defined your own function , calling it getJaccard, which you then make use of in your cardsort function.
Its very unclear what circumstances the error you listed relate to. Does it relate to running just code you shared here. Or installing or attaching the jaccard package ?
The error came when running that full set of functions. The first time I ran it, I got an error that it couldn't find jaccard, so I installed that package. Then when I ran the full set again, I got that error. I've been troubleshooting each section / function on its own since then, and oof am I in over my head.