search for: the_index

Displaying 1 result from an estimated 1 matches for "the_index".

Did you mean: pte_index
2007 Nov 13
0
resampling
Dear all, I sample without replacement elements of a vector and generate a new vector: kl<-c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,8,8, 8,8,8,8,8,8,8) the_index<-c(sample(40,35)) for(fs in 1:length(the_index)){if(fs==1){s<-c(kl[the_index[fs]])}else{s<- append(s, kl[the_index[fs]], after = length(s))}} I am running in BATCH mode this script in a cluster that is able to run two processes at the same time. I am invoking the script 10 times an...