[R] Non-numeric argument to fft

rkevinburton at charter.net rkevinburton at charter.net
Sat Aug 30 08:39:24 CEST 2008


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?

Thank you.

Kevin


>



More information about the R-help mailing list