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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -