0
$\begingroup$

I'm trying to do a spectral analysis in R. I learned it in Python from Allen Downey's ThinkDSP book.

What is the R equivalent of the Python numpy function, numpy.fft.fftfreq?

If you provide a window length and spacing, that function returns the frequency bin centers. I've been hunting through R package documentation and StackOverflow. Is there an equivalent function in R?

$\endgroup$
  • $\begingroup$ I don't know the answer but you should check the "signal" package on cran. $\endgroup$ – mark leeds Oct 4 at 5:12
  • $\begingroup$ @markleeds That's something to go on, and there is a lot to explore in that package. Thanks for the tip. $\endgroup$ – Jai Jeffryes Oct 4 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.