Re: [R] using acf() for multiple columns

2008-08-11 Thread Paul Gilbert
help@r-project.org Subject: [R] using acf() for multiple columns Hi everyone, I'm trying to use the acf() function to calculate the autocorrelation of each column in a matrix. The trouble is that I can only seem to get the function to work if I extract the data in the column into a separat

Re: [R] using acf() for multiple columns

2008-08-07 Thread Ling, Gary (Electronic Trading)
This should do. sapply(split(A,col(A)), function(ts) acf(ts,plot=F)$acf) -gary -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rcoder Sent: Thursday, August 07, 2008 4:11 AM To: r-help@r-project.org Subject: Re: [R] using acf() for multiple columns

Re: [R] using acf() for multiple columns

2008-08-07 Thread Henrique Dallazuanna
t; #Or >> lapply(split(A,col(A)), function(ts) acf(ts, lag.max=10)) >> >> >> >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> On Behalf Of rcoder >> Sent: Wednesday, August 06, 2008 4:13 PM >>

Re: [R] using acf() for multiple columns

2008-08-07 Thread rcoder
lag.max=10)) > > > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of rcoder > Sent: Wednesday, August 06, 2008 4:13 PM > To: r-help@r-project.org > Subject: [R] using acf() for multiple columns > > >

Re: [R] using acf() for multiple columns

2008-08-06 Thread Ling, Gary (Electronic Trading)
(ts, lag.max=10)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rcoder Sent: Wednesday, August 06, 2008 4:13 PM To: r-help@r-project.org Subject: [R] using acf() for multiple columns Hi everyone, I'm trying to use the acf() function to calcu

[R] using acf() for multiple columns

2008-08-06 Thread rcoder
Hi everyone, I'm trying to use the acf() function to calculate the autocorrelation of each column in a matrix. The trouble is that I can only seem to get the function to work if I extract the data in the column into a separate matrix and then apply the acf() function to this column. I have somet