Skip to content

Help -- Error in clusterApplyLB

1 message · kparamas

#
I am running this in a cluster,

I am trying to calculate this in a cluster,
cdata = replicate(2000,rnorm(6))
c1 = cor(cdata)


m1 = as.matrix(cdata)
cl = makeCluster(64)
out = clusterApplyLB(cl,m1,cor)
Error in checkForRemoteErrors(val) : 
  12000 nodes produced errors; first error: supply both 'x' and 'y' or a
matrix-like 'x'

Is these arguments fine??
clusterApplyLB(cl,m1,cor)