Displaying 1 result from an estimated 1 matches for "tp4636910".
2012 Jul 18
2
conditional increase by increment
...,trip_no)
increment <- function(x){
eval.parent(substitute(x <- x + 1))
}
for(i in length(gg)){
if(gg$land[[i]]==1) {
gg$trip_no<-increment(trip_no[i])
}
}
--
View this message in context: http://r.789695.n4.nabble.com/conditional-increase-by-increment-tp4636910.html
Sent from the R help mailing list archive at Nabble.com.