[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.

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

Re: [R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
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 [[2]] [1] 4 clusterCall(cl,function

Re: [R] cluster/snow question

2008-09-10 Thread Luke Tierney
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(cl,function()x+5) [[1]] [1] 9 [[2]] [1

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 the snow

Re: [R] cluster/snow question

2008-09-09 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 list.

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
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 - makeCluster(#nodes) The object

Re: [R] cluster/snow question

2008-09-09 Thread Luke Tierney
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 - makeCluster(#nodes

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
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 could one identify the rank of that specific node

[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