search for: meandur

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

Did you mean: meander
2010 Jun 01
2
Help on aggregate method
...- which((aggrTable[,1]==dataTable[["Attr1"]][ind]) & (aggrTable[,2]==dataTable[["Attr2"]][ind])) as.numeric(aggrTable[index,3]) } avgDur <- aggregate(ap.dat[["Dur"]], by = list(ap.dat[["Attr1"]], ap.dat[["Attr2"]]), FUN="mean") meanDur <- sapply((1:length(ap.dat[,1])), FUN=matchMean, ap.dat, avgDur) ap.dat <- cbind (ap.dat, meanDur) As I deal with very large dataset, it takes long time to run my matching function, so if you had an idea on how to automate more this matching process I would be really grateful. Thank you ver...