---------- Forwarded message ----------
From: Nick Donald <thebluebeatle@gmail.com>
Date: Thu, Jan 24, 2013 at 3:13 PM
Subject: Rmpi help
To: r-sig-hpc@r-project.org


Hi

I have been setting up R for our cluster at my work. I am trying to test
the install of RMPI. I have done this so far by using a hello world
example. But however I am needing to test RMPI with doing stuff from data
from two tables from a database oracle database. I have been able to pull
the data from the tables and put them in two data frames. Each data frame
only holds 26 numbers each in them. What I need to do is for the test is
times the two numbers together for the numbers in the data frame and put
them in a new data frame.

I have been able to do this on the master node by using the following loop.

nc <- 1
nr <- 26
df3 <- data.frame(matrix(NA, ncol = nc, nrow = nr))

 for(i in 1:nr) {

(df3[i,1] <- df1[i,1] * df2[i,1])
 }

I was looking at doing a task pull method for the slave so that each
equation but have not been able to figure out how to do it. I was following
the info from http://math.acadiau.ca/ACMMaC/Rmpi/structure.html on how to
do this but have not had any luck.

Would someone be able to help me with this?

	[[alternative HTML version deleted]]

