search for: pred_pres_

Displaying 2 results from an estimated 2 matches for "pred_pres_".

2009 Jul 30
3
for loop for file names
I am trying to load binary files in the following fashion load("pred/Pred_pres_a_indpdt") load("pred/Pred_pres_b_indpdt") load("pred/Pred_pres_c_indpdt") load("pred/Pred_pres_d_indpdt") load("pred/Pred_pres_e_indpdt") load("pred/Pred_pres_f_indpdt") but I would like to set up a for loop to replace the letters a:f Here is...
2009 Jul 31
1
function problem
...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...