search for: actdur

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

Did you mean: acedup
2011 Apr 25
1
Trouble Passing a for loop variable (iteration #) to a data frame
...> # fabdata3.r > # fabricate sample data > > #declare the mean duration > dur<-.04 > > #declare the stdDev of the rnorm() fcn (duration) > varc<-.01 > > sp<-numeric() > iter<-numeric() > ti<-numeric() > to<-numeric() > actdur<-numeric() > #newline<-data.frame(sp, iter, ti, to, actdur) > ds<-data.frame(sp, iter, ti, to, actdur) > > # BEGIN OUTER LOOP > for (sp in c(1:3)) { + + ct<-1 + # BEGIN INNER LOOP + + x <- seq(1, 4, by=1) + for...