Re: [R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
Many thanks, that is very helpful. Tolga Luke Tierney <[EMAIL PROTECTED]> 10/09/2008 14:05 To [EMAIL PROTECTED] cc [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] cluster/snow question ls() looks in its calling environment, which in this case would be the internals of th

Re: [R] cluster/snow question

2008-09-10 Thread Luke Tierney
[EMAIL PROTECTED] To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] cluster/snow question Hi Tolga, I am not sure why ls() is showing only "args" and "fun". But x is at the nodes. Try this: clusterEvalQ(cl,x<-x+3) [[1]] [1] 4 [[2]] [1] 4 clusterCall(

Re: [R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
008 10:45 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] cluster/snow question Hi Tolga, I am not sure why ls() is showing only "args" and "fun". But x is at the nodes. Try this: clusterEvalQ(cl,x<-x+3) [[1]] [1] 4

Re: [R] cluster/snow question

2008-09-10 Thread Markus Schmidberger
Hi Tolga, I am not sure why ls() is showing only "args" and "fun". But x is at the nodes. Try this: clusterEvalQ(cl,x<-x+3) [[1]] [1] 4 [[2]] [1] 4 clusterCall(cl,function()x+5) [[1]] [1] 9 [[2]] [1] 9 Best Markus [EMAIL PROTECTED] schrieb: Dear R Users, Apologies for a somewhat basic

[R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
Dear R Users, Apologies for a somewhat basic cluster question. I am trying to come to grips with how variables are instantiated within the environment of each node in a cluster. When I run the following code, I expect to see the variable "x" in the environment of each node, but fail to do so. W

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
r-help@r-project.org Subject Re: [R] cluster/snow question On Tue, 9 Sep 2008, [EMAIL PROTECTED] wrote: > Hi Markus, > > Many thanks. Is the "cluster" variable you mention below available in the > environment of the nodes ? Specifically, within that environment, how >

Re: [R] cluster/snow question

2008-09-09 Thread Luke Tierney
Thanks, Tolga Markus Schmidberger <[EMAIL PROTECTED]> 09/09/2008 07:11 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] cluster/snow question Hi Tolga, in SNOW you have to start a cluster with the command > library(snow) > cl

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
Markus Schmidberger <[EMAIL PROTECTED]> 09/09/2008 07:11 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] cluster/snow question Hi Tolga, in SNOW you have to start a cluster with the command > library(snow) > cluster <-

Re: [R] cluster/snow question

2008-09-08 Thread Markus Schmidberger
Hi Tolga, in SNOW you have to start a cluster with the command > library(snow) > cluster <- makeCluster(#nodes) The object "cluster" is a list with an object for each node and each object again is a list with all informations (rank, comm, tags) The size of the cluster is the length of the lis

[R] cluster/snow question

2008-09-08 Thread tolga . i . uzuner
Dear R Users, I am attempting to use the snow package for clustering. Is there a way to identfy, in the environment of each node, a rank for that node and also, the total size of the cluster ? By way of analogy, I am looking for the functions in snow equivalent to mpi.comm.rank() and mpi.comm