hi all, i have a little problem, i have some code writen, but it is to slow... i have a dataframe with a column of time series and a grouping column, really there is no metter if in the first col what kind of data is, it can be a random number like this x<-rnorm(10) gr<-c(1,3,1,2,2,4,2,3,3,3) x<-cbind(x,gr) now i have to look for every row i , for this group, how much from the x[,1] is in a range from x[1,i] such x[1,i] (+/-) k (k is a another number) thanks in advance
View this message in context: http://r.789695.n4.nabble.com/grouping-and-counting-in-dataframe-tp3325476p3325476.html Sent from the R help mailing list archive at Nabble.com.