Thanks Ilya - I'll take a look there for HA. I'm also poking around with the xts package ("to.period()" stuff) which looks to also use a lot of Rcpp for performance. I've read a bunch already about R's performance (or lack thereof) for loops, but fortunately I know C/C++ and am just learning how Rcpp makes use of them (hopefully won't take too long).