Displaying 1 result from an estimated 1 matches for "tp4130179p4143329".
2011 Dec 02
2
Moving column averaging
...ose back
means <- t(rollapply(df2, width=2, by=2, FUN=mean))
# adding the combined column names you requested
colnames(means) <- apply(matrix(names(df), nrow=2), 2, paste, collapse=", ")
HTH
--
View this message in context: http://r.789695.n4.nabble.com/Moving-column-averaging-tp4130179p4143329.html
Sent from the R help mailing list archive at Nabble.com.