Re: [R] Non-numeric argument to fft

2008-08-31 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: If this is the case then how to I take a list of numbers (residuals in this case) and create anothe list that is longer and padded by zeros? Maybe fft already does this for me but as I understood it I need to pass an vector to the fft that is of a power of 2 length.

Re: [R] Non-numeric argument to fft

2008-08-30 Thread rkevinburton
If this is the case then how to I take a list of numbers (residuals in this case) and create anothe list that is longer and padded by zeros? Maybe fft already does this for me but as I understood it I need to pass an vector to the fft that is of a power of 2 length. If I still need to do this th

Re: [R] Non-numeric argument to fft

2008-08-30 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: I am calling fft and getting a "non-numeric" error: + fit <- lm(Quantity ~ DayOfYear, .sublist) + # Make the time series + x <- as.numeric(rep(0,512)) + x <- merge(residuals(fit), x) + # Transform range to -pi - pi + x <-

[R] Non-numeric argument to fft

2008-08-29 Thread rkevinburton
I am calling fft and getting a "non-numeric" error: + fit <- lm(Quantity ~ DayOfYear, .sublist) + # Make the time series + x <- as.numeric(rep(0,512)) + x <- merge(residuals(fit), x) + # Transform range to -pi - pi + x <- x - pi + x <- x * (2