r - HCS clustering throwing function ‘nodes’ for signature ‘"numeric"’ error -
#loading libraries
library(graphclusteranalysis) library(igraph) library(rbgl) library(graph) library(snow) library(snowfall) library(parallel)
reading input data
data<-read.csv('/home/poorna/desktop/cluster/test',header=false,sep=",") g = graph.data.frame(data,directed=false)
make cluster type
cl <- makecluster( '172.1.30.240', type="sock" ) clusterexport(cl, c('data'))
hcs cluster in parallel
results <- parlapply( cl, g, function(g) { require(graphclusteranalysis) require(igraph) require(rbgl) hcsclustering(g,kappa=3) } )
i try execute above code in parallel throwing below error`
error in checkforremoteerrors(val) : 1 node produced error: unable find inherited method function ‘nodes’ signature ‘"numeric"’`
my input data in below format
2,5 159,5 2,100 2,858 3,100
Comments
Post a Comment