search for: modeldat

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

Did you mean: modeldata
2004 Feb 16
1
understanding loops for "loop-plotting"
...wish in one pdf the 5 plots . So i want plots for const=1:5 which change the undelying data expressed in t1 and t2. I attempt some trials , while, for and now repeat loop now , but didn't getting success . I get only the first plot and the loop hang? Many thanks for help ,Christian. #modeldat and YS are data.frames. special <- function(const,modeldat,YS) { const=const repeat { t1 <- apply(YS,1, function(x) { ifelse(all(is.na(x)) | all(na.omit(x) < 0 ,NA, which( x > const ))}) t1[is.na(t1)] <- 13 t2 <- sapply(t1,function(x) { ifelse(x ==13,0,1)}) modeldat$M...