[R] function problem
RRRRRRRRRR!
cwalter at usgs.gov
Fri Jul 31 18:25:46 CEST 2009
I have a series of columns that need to be evaluated in various tables. I
need to apply a function in the following manner somers2(name1,name2). name1
is a vector of x inputs for the function which correspond to a vector of y
inputs in name2.
y<-rep(c(3,4,5,8),6)
z<-rep(c(23,24,25,26,27,28),4)
name1<-sprintf("Pred_pres_%s_indpdt[,%s,,]",x,y)
name2<-sprintf("population[,%s]",z)
rank<-function(i,j){
for(i in name1){
for(j in name2){
somers2(i,j)
}}}
Thanks
Robert
--
View this message in context: http://www.nabble.com/function-problem-tp24759253p24759253.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list