Re: [R] blockwise sums

2004-09-01 Thread Vicente Canto Casasola
Hi, all!! From the help page for 'aggregate': Splits the data into subsets, computes summary statistics for each, and returns the result in a convenient form. So here's the solution I found to this problem: blocksums - function(x,n) { temp - 1:length(x)-1 temp - list((temp%/%n)+1)

[R] Re: matrix exponential: M0

2004-01-22 Thread Vicente Canto Casasola
H i, all! First of all, I'd like to apologize for my poor English. It's for years I don't use it. This is a R-version of a function I wrote a long ago for my HP48 calculator. It works with the binary expression of the power and just need to duplicate the mem used by X. Hope this helps.