[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 <- x - pi
+         x <- x * (2 * pi)/(max(x) - min(x))
+ fft(x)
Error in fft(x) : non-numeric argument

How can I tell what the non-numeric argument is? There is only one argument.

What am I doing wrong?


I guess merge() does something different from what you expect and your x is a data.frame rather than a vector now....

Uwe Ligges



Thank you.

Kevin



______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to