search for: comm1000

Displaying 2 results from an estimated 2 matches for "comm1000".

2012 Apr 06
4
Order sapply
...11 4 9 11-11 1216637080 1216631541 5539 11 11 4 10 11-11 1216646563 1216640763 5800 11 11 4 11 11-11 1216656338 1216651635 4703 11 11 " df1 <-read.table(textConnection(text), header=TRUE) inx <- df1$commutation > 1000 comm1000 <- cumsum(inx) result <- split(df1[!inx, ], list(comm1000[!inx], df1$v_source[!inx], df1$v_destine[!inx])) result <- sapply(result, function(x) c(x$val_user[1], x$v_source[1], x$v_destine[1], nrow(x), mean(x$comm))) result <- na.exclude(t(result)) rownames(result) <- 1:nrow(result)...
2012 Mar 27
2
R extract parts
Good Afternoon, I believe that my to the problem, the R has a more effective solution. in place the use the loop I have the following set of data, and needs to extract some sections. user pos communications source v_destine 7 1 109 22 22 7 2 100 22 22 7 3 214 22 22 7 4 322 22 22 7 5 69920 22 161 7 6